From: Tom Hughes Date: Sat, 13 Aug 2011 10:48:04 +0000 (+0100) Subject: Merge branch 'master' into openstreetbugs X-Git-Tag: live~5960^2~143 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/72e33046c80bddc0ca9b1336786dcb4b349137f7?hp=-c Merge branch 'master' into openstreetbugs Conflicts: app/views/browse/_map.html.erb app/views/site/index.html.erb --- 72e33046c80bddc0ca9b1336786dcb4b349137f7 diff --combined app/views/browse/_map.html.erb index dd4ec74df,1ff86cd4e..d2695ebe6 --- a/app/views/browse/_map.html.erb +++ b/app/views/browse/_map.html.erb @@@ -1,24 -1,71 +1,71 @@@ <%= javascript_include_tag '/openlayers/OpenLayers.js' %> <%= javascript_include_tag '/openlayers/OpenStreetMap.js' %> <%= javascript_include_tag 'map.js' %> + + +
<% if map.instance_of? Changeset or (map.instance_of? Node and map.version > 1) or map.visible %>
<%= t 'browse.map.loading' %> - + <%= link_to(t("browse.map.larger.area"), { :controller => :site, :action => :index, :box => "yes" }, { :id => "area_larger_map", :class => "geolink bbox" }) %> +
+ <%= link_to(t("browse.map.edit.area"), { :controller => :site, :action => :edit }, { :id => "area_edit", :class => "geolink bbox" }) %> <% unless map.instance_of? Changeset %>
- + <%= link_to("", { :controller => :site, :action => :index }, { :id => "object_larger_map", :class => "geolink object" }) %> +
+ <%= link_to("", { :controller => :site, :action => :edit }, { :id => "object_edit", :class => "geolink object" }) %> <% end %> <% else %> <%= t 'browse.map.deleted' %> <% end %>
+ + + + + <% if map.instance_of? Changeset or (map.instance_of? Node and map.version > 1) or map.visible %> diff --combined app/views/user/view.html.erb index 5659cd133,834e8571b..08c4669ae --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@@ -1,4 -1,4 +1,4 @@@ - <%= user_image @this_user, :style => "float: right" %> + <%= user_image @this_user %>

<%= h(@this_user.display_name) %> @@@ -23,9 -23,7 +23,9 @@@ | <%= link_to t('user.view.my edits'), :controller => 'changeset', :action => 'list', :display_name => @user.display_name %> | - <%= link_to t('user.view.my traces'), :controller => 'trace', :action=>'mine' %> + <%= link_to t('user.view.my traces'), :controller => 'trace', :action=> 'mine' %> + | + <%= link_to t('user.view.my notes'), :controller => 'note', :action=> 'mine' %> | <%= link_to t('user.view.my settings'), :controller => 'user', :action => 'account', :display_name => @user.display_name %> | @@@ -45,8 -43,6 +45,8 @@@ | <%= link_to t('user.view.traces'), :controller => 'trace', :action => 'view', :display_name => @this_user.display_name %> | + <%= link_to t('user.view.notes'), :controller => 'note', :action=> 'mine' %> + | <% if @user and @user.is_friends_with?(@this_user) %> <%= link_to t('user.view.remove as friend'), :controller => 'user', :action => 'remove_friend', :display_name => @this_user.display_name %> <% else %> @@@ -94,11 -90,9 +94,9 @@@
<%= htmlize(@this_user.description) %>
<% if @user and @this_user.id == @user.id %> -
+
<% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %> -

- <%= t 'user.view.if set location', :settings_link => (link_to t('user.view.settings_link_text'), :controller => 'user', :action => 'account', :display_name => @user.display_name) %> -

+

<%= t 'user.view.if set location', :settings_link => (link_to t('user.view.settings_link_text'), :controller => 'user', :action => 'account', :display_name => @user.display_name) %>

<% else %> <%= render :partial => 'map', :locals => { :setting_location => false, :show_other_users => true } %> <% end %> diff --combined config/example.application.yml index eef48a7bb,abcd1ce41..cd4f205f3 --- a/config/example.application.yml +++ b/config/example.application.yml @@@ -24,8 -24,6 +24,8 @@@ standard_settings: &standard_setting max_number_of_nodes: 50000 # Maximum number of nodes that can be in a way (checked on save) max_number_of_way_nodes: 2000 + # The maximum area you're allowed to request notes from, in square degrees + max_note_request_area: 25 # Zoom level to use for postcode results from the geocoder postcode_zoom: 15 # Zoom level to use for geonames results from the geocoder @@@ -59,6 -57,8 +59,8 @@@ gpx_image_dir: "/home/osm/images" # Location of data for file columns #file_column_root: "" + # Log file to use + #log_path: "" # List of memcache servers to use for caching #memcache_servers: [] # Enable legacy OAuth 1.0 support diff --combined config/locales/de.yml index cee5e0183,261e46bc5..451555931 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@@ -53,7 -53,7 +53,7 @@@ de user: active: Aktiv description: Beschreibung - display_name: Name zum Anzeigen + display_name: Anzeigename email: E-Mail languages: Sprachen pass_crypt: Passwort @@@ -61,7 -61,7 +61,7 @@@ acl: Liste für Zugangskontrolle changeset: Changeset changeset_tag: Changeset-Tag - country: Land + country: Staat diary_comment: Blog-Kommentar diary_entry: Blogeintrag friend: Freund @@@ -906,22 -906,6 +906,22 @@@ history_disabled_tooltip: Reinzoomen um Änderungen für diesen Bereich anzuzeigen history_tooltip: Änderungen für diesen Bereich anzeigen history_zoom_alert: Du musst näher heranzoomen, um die Chronik zu sehen + osb: + Fixed Error: Behobener Fehler + Unresolved Error: Offener Fehler + Description: Beschreibung + Comment: Kommentar + Has been fixed: Der Fehler wurde bereits behoben. Es kann jedoch bis zu einigen Tagen dauern, bis die Kartenansicht aktualisiert wird. + Comment/Close: Kommentieren/Schließen + Nickname: Benutzername + Add comment: Kommentar hinzufügen + Mark as fixed: Als behoben markieren + Cancel: Abbrechen + Create OpenStreetBug: OpenStreetBug melden + Create bug: Bug anlegen + Bug description: Fehlerbeschreibung + Create: Anlegeeen + Permalink: Permalink layouts: community_blogs: Blogs community_blogs_title: Blogs von Mitwirkenden bei OpenStreetMap @@@ -1444,7 -1428,7 +1444,7 @@@ disabled link text: Warum kann ich nichts bearbeiten? enabled: Aktiviert. Nicht anonym, bearbeiten der Kartendaten möglich. enabled link: http://wiki.openstreetmap.org/wiki/Anonymous_edits - enabled link text: Was ist das? + enabled link text: Was bedeutet dies? heading: "Öffentliches Bearbeiten:" public editing note: heading: Öffentliches Bearbeiten @@@ -1490,10 -1474,8 +1490,8 @@@ login: account not active: Leider wurde dein Benutzerkonto bislang noch nicht aktiviert.
Bitte aktiviere dein Benutzerkonto, indem du auf den Link in deiner Bestätigungs-E-Mail klickst oder eine neue Bestätigungs-E-Mail anforderst. account suspended: Dein Benutzerkonto wurde aufgrund verdächtiger Aktivitäten gesperrt, um potentiellen Schaden von OpenStreetMap abzuwenden.
Bitte kontaktiere den %{webmaster}, sofern du diese Angelegenheit klären möchtest. - already have: Du hast bereits ein OpenStreetMap-Benutzerkonto? Bitte einloggen. auth failure: Sorry, Anmelden mit diesen Daten nicht möglich. create account minute: Erstelle ein Benutzerkonto. Es dauert nur eine Minute. - create_account: erstelle ein Benutzerkonto email or username: "E-Mail-Adresse oder Benutzername:" heading: Anmelden login_button: Anmelden @@@ -1501,7 -1483,6 +1499,6 @@@ new to osm: Neu bei OpenStreetMap? notice: Informiere dich über den bevorstehenden Lizenzwechsel bei OpenStreetMap (Übersetzungen) (Diskussion) password: "Passwort:" - please login: Bitte melde dich an oder %{create_user_link}. register now: Jetzt registrieren remember: "Anmeldedaten merken:" title: Anmelden @@@ -1570,7 -1551,7 +1567,7 @@@ terms: agree: Akzeptieren consider_pd: Zusätzlich zur oben genannten Vereinbarung, betrachte ich meine Beiträge als gemeinfrei (Public Domain) - consider_pd_why: Was bedeutet das? + consider_pd_why: Was bedeutet dies? decline: Ablehnen guidance: "Informationen die dabei helfen, diese Bedingungen zu verstehen: eine verständliche Zusammenfassung sowie einige inoffizielle Übersetzungen" heading: Vereinbarung für Mitwirkende @@@ -1579,7 -1560,7 +1576,7 @@@ italy: Italien rest_of_world: Rest der Welt legale_select: "Bitte wähle das Land deines Wohnsitzes:" - read and accept: Bitte lese die unten angezeigte Vereinbarung und klicke dann auf die Schaltfläche „Einverstanden“, um zu bestätigen, dass du die Bedingungen dieser Vereinbarung für deine bestehenden sowie zukünftigen Beiträge akzeptierst. + read and accept: Bitte lese die unten angezeigte Vereinbarung und klicke dann auf die Schaltfläche „Akzeptieren“, um zu bestätigen, dass du den Bedingungen dieser Vereinbarung für deine bisherigen sowie zukünftigen Beiträge zustimmst. title: Vereinbarung für Mitwirkende you need to accept or decline: Bitte lese die neuen Bedingungen für Mitwirkende und nehme sie an oder lehne sie ab, bevor du weitermachst. view: diff --combined config/locales/en.yml index 5b6d575d3,fd9c49b2b..598301c2a --- a/config/locales/en.yml +++ b/config/locales/en.yml @@@ -157,6 -157,11 +157,11 @@@ en node: "View node on larger map" way: "View way on larger map" relation: "View relation on larger map" + edit: + area: "Edit area" + node: "Edit node" + way: "Edit way" + relation: "Edit relation" node_details: coordinates: "Coordinates:" part_of: "Part of:" @@@ -277,17 -282,6 +282,17 @@@ download_xml: "Download XML" view_history: "view history" edit: "edit" + note: + open_title: "Unresolved issue: %{note_name}" + closed_title: "Resolved issue: %{note_name}" + created_at: "Created at:" + edited_at: "Edited at:" + closed_at: "Closed at:" + opened_by: "Opened by:" + description: "Description:" + comment_by: "Comment by: " + comment: "Comment:" + date: "Date:" changeset: changeset_paging_nav: showing_page: "Showing page %{page}" @@@ -942,9 -936,10 +947,10 @@@ tag_line: The Free Wiki World Map intro_1: "OpenStreetMap is a free editable map of the whole world. It is made by people like you." intro_2: "OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth." - intro_3: "OpenStreetMap's hosting is kindly supported by the %{ucl} and %{bytemark}. Other supporters of the project are listed in the %{partners}." - intro_3_ucl: "UCL VR Centre" - intro_3_bytemark: "bytemark" + intro_3: "OpenStreetMap's hosting is kindly supported by %{ucl}, %{ic} and %{bytemark}. Other supporters of the project are listed in the %{partners}." + intro_3_ucl: "the UCL VR Centre" + intro_3_ic: "Imperial College London" + intro_3_bytemark: "Bytemark Hosting" intro_3_partners: "wiki" intro_3_partners_url: "http://wiki.openstreetmap.org/wiki/Partners" osm_offline: "The OpenStreetMap database is currently offline while essential database maintenance work is carried out." @@@ -1181,13 -1176,6 +1187,13 @@@ greeting: "Hi," hopefully_you: "Someone (possibly you) has asked for the password to be reset on this email address's openstreetmap.org account." click_the_link: "If this is you, please click the link below to reset your password." + note_plain: + subject_own: "[OpenStreetMap] %{commenter} has commented on one of your notes" + subject_other: "[OpenStreetMap] %{commenter} has commented on a note you are interested in" + greeting: "Hi," + your_note: "%{commenter} has left a comment on one of your map notes near %{place}." + commented_note: "%{commenter} has left a comment on a map note you have commented on. The note is near %{place}." + details: "More details about the note can be found at %{URL}." message: inbox: title: "Inbox" @@@ -1390,11 -1378,11 +1396,11 @@@ heading: "The user %{user} does not exist" body: "Sorry, there is no user with the name %{user}. Please check your spelling, or maybe the link you clicked is wrong." trace_form: - upload_gpx: "Upload GPX File" - description: "Description" - tags: "Tags" + upload_gpx: "Upload GPX File:" + description: "Description:" + tags: "Tags:" tags_help: "comma delimited" - visibility: "Visibility" + visibility: "Visibility:" visibility_help: "what does this mean?" visibility_help_url: "http://wiki.openstreetmap.org/wiki/Visibility_of_GPS_traces" upload_button: "Upload" @@@ -1468,7 -1456,7 +1474,7 @@@ need_to_see_terms: "Your access to the API is temporarily suspended. Please log-in to the web interface to view the Contributor Terms. You do not need to agree, but you must view them." oauth: oauthorize: - request_access: "The application %{app_name} is requesting access to your account. Please check whether you would like the application to have the following capabilities. You may choose as many or as few as you like." + request_access: "The application %{app_name} is requesting access to your account, %{user}. Please check whether you would like the application to have the following capabilities. You may choose as many or as few as you like." allow_to: "Allow the client application to:" allow_read_prefs: "read your user preferences." allow_write_prefs: "modify your user preferences." @@@ -1622,7 -1610,7 +1628,7 @@@ using your username and password and then associate the account with your OpenID in your user settings. - + continue: Continue flash create success message: "Thanks for signing up. We've sent a confirmation note to %{email} and as soon as you confirm your account you'll be able to get mapping.

If you use an antispam system which sends confirmation requests then please make sure you whitelist webmaster@openstreetmap.org as we are unable to reply to any confirmation requests." terms accepted: "Thanks for accepting the new contributor terms!" @@@ -1654,7 -1642,6 +1660,7 @@@ new diary entry: new diary entry my edits: my edits my traces: my traces + my notes: my map notes my settings: my settings oauth settings: oauth settings blocks on me: blocks on me @@@ -1663,7 -1650,6 +1669,7 @@@ diary: diary edits: edits traces: traces + notes: map notes remove as friend: remove as friend add as friend: add as friend mapper since: "Mapper since:" @@@ -1915,21 -1901,6 +1921,21 @@@ back: "View all blocks" revoker: "Revoker:" needs_view: "The user needs to log in before this block will be cleared." + note: + rss: + title: "OpenStreetMap Notes" + description_area: "A list of notes, reported, commented on or closed in your area [(%{min_lat}|%{min_lon}) -- (%{max_lat}|%{max_lon})]" + description_item: "An rss feed for note %{id}" + closed: "closed note (near %{place})" + new: "new note (near %{place})" + comment: "new comment (near %{place})" + mine: + title: "Notes submitted or commented on by %{user}" + heading: "%{user}'s notes" + description: "Notes submitted or commented on by %{user}" + id: "Id" + last_changed: "Last changed" + javascripts: map: base: @@@ -1946,25 -1917,3 +1952,25 @@@ history_tooltip: View edits for this area history_disabled_tooltip: Zoom in to view edits for this area history_zoom_alert: You must zoom in to view edits for this area + osb: + Fixed Error: Fixed Error + Unresolved Error: Unresolved Error + Description: Description + Comment: Comment + Has been fixed: This error has been fixed already. However, it might take a couple of days before the map image is updated. + Comment/Close: Comment/Close + Nickname: Nickname + Add comment: Add comment + Mark as fixed: Mark as fixed + Cancel: Cancel + Create OpenStreetBug: Create OpenStreetBug + Create bug: Report a problem with the map + Bug description: Problem description + Create: Report problem + Permalink: Permalink + Login: Login + Details: Details + edityourself: You can also edit the map directly your self + draghelp1: Please drag the marker to the location of the problem + draghelp2: and descripe it as accurate as possible + diff --combined public/stylesheets/large.css index 5d25e7fba,1c4d493ec..9d664ef26 --- a/public/stylesheets/large.css +++ b/public/stylesheets/large.css @@@ -9,7 -9,6 +9,6 @@@ /* Rules for the main content area */ #content { - left: 192px; top: 35px; } @@@ -18,9 -17,3 +17,9 @@@ .olControlPanZoom { display: none; } + +/* Rules for map bug reporting */ + +#reportbuganchor { + font-size: 150%; +}