]> git.openstreetmap.org Git - rails.git/commitdiff
Add an edit link to the browse page for nodes, since it's been bugging me a while...
authorThomas Wood <grand.edgemaster@gmail.com>
Wed, 17 Jun 2009 16:37:43 +0000 (16:37 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Wed, 17 Jun 2009 16:37:43 +0000 (16:37 +0000)
Translation updates required (small edit)

app/views/browse/node.html.erb
config/locales/en.yml

index 19aeb7dcafbe6da89dfec232f7d5219870c5e9ed..14e8aa503bcc35d40dee649d962f0cc6fcc7b729 100644 (file)
@@ -16,7 +16,9 @@
       <%= render :partial => "node_details", :object => @node %>
       <hr />
       <%= t'browse.node.download', :download_xml_link => link_to(t('browse.node.download_xml'), :controller => "node", :action => "read"),
       <%= render :partial => "node_details", :object => @node %>
       <hr />
       <%= t'browse.node.download', :download_xml_link => link_to(t('browse.node.download_xml'), :controller => "node", :action => "read"),
-                                   :view_history_link => link_to(t('browse.node.view_history'), :action => "node_history") %>
+                                   :view_history_link => link_to(t('browse.node.view_history'), :action => "node_history"),
+                                   :edit_link => link_to(t('browse.node.edit'), :controller => "site", :action => "edit", :lat => @node.lat, :lon => @node.lon, :zoom => 18, :node => @node.id)
+      %>
     </td>
     <%= render :partial => "map", :object => @node %>
   </tr>
     </td>
     <%= render :partial => "map", :object => @node %>
   </tr>
index 94a5f68737b092db5a92202b4ab99c1ebaaa8008..dd76441ca57e1ae504340e06b1ee6b2e967b09d1 100644 (file)
@@ -117,9 +117,10 @@ en:
     node:
       node: "Node"
       node_title: "Node: {{node_name}}"
     node:
       node: "Node"
       node_title: "Node: {{node_name}}"
-      download: "{{download_xml_link}} or {{view_history_link}}"
+      download: "{{download_xml_link}}, {{view_history_link}} or {{edit_link}}"
       download_xml: "Download XML"
       view_history: "view history"
       download_xml: "Download XML"
       view_history: "view history"
+      edit: "edit"
     not_found:
       sorry: "Sorry, the {{type}} with the id {{id}}, could not be found."
       type:
     not_found:
       sorry: "Sorry, the {{type}} with the id {{id}}, could not be found."
       type: