When I navigate to /browse/{node,way,relation}/:id/history there's no
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 26 Jun 2009 21:04:36 +0000 (21:04 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 26 Jun 2009 21:04:36 +0000 (21:04 +0000)
link that will take me back to /browse/{node,way,relation}/:id

So I'm adding it.

app/views/browse/node_history.html.erb
app/views/browse/relation_history.html.erb
app/views/browse/way_history.html.erb

index 7f03ac769c15a954c1b3e7a7b8bb91b111b6232f..fe6c79812cf1b592e0f365d7ac7035dfa6f5baaf 100644 (file)
@@ -2,7 +2,7 @@
 @name = printable_name @node
 @title = t('browse.node_history.node_history') + ' | ' + @name
 %>
-<h2><%= t'browse.node_history.node_history_title', :node_name => h(@name) %></h2>
+<h2><%= t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %></h2>
 
 <table width="100%">
   <tr valign="top">
index 45f3d14004c8daa508b1fc595021943ba20167dd..649638a76c1200732324d0f365406ed50e5b06f5 100644 (file)
@@ -2,7 +2,7 @@
 @name = printable_name @relation
 @title = t('browse.relation_history.relation_history') + ' | ' + @name
 %>
-<h2><%= t'browse.relation_history.relation_history_title', :relation_name => h(@name) %></h2>
+<h2><%= t'browse.relation_history.relation_history_title', :relation_name => link_to(h(@name), :action => "relation", :id => @relation.id) %></h2>
 
 <table width="100%">
   <tr valign="top">
index edb967e9ecb00a1548a994eed9986a9a59b2c82f..f61fa6fa142ee7167603fdbc5480713767467f3b 100644 (file)
@@ -2,7 +2,7 @@
 @name = printable_name @way
 @title = t('browse.way_history.way_history') + ' | ' + @name
 %>
-<h2><%= t'browse.way_history.way_history_title', :way_name => h(@name) %></h2>
+<h2><%= t'browse.way_history.way_history_title', :way_name => link_to(h(@name), :action => "way", :id => @way.id) %></h2>
 
 <table width="100%">
   <tr valign="top">