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 19aeb7d..14e8aa5 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"),
-                                   :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>
index 94a5f68..dd76441 100644 (file)
@@ -117,9 +117,10 @@ en:
     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"
+      edit: "edit"
     not_found:
       sorry: "Sorry, the {{type}} with the id {{id}}, could not be found."
       type: