]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/relation_history.html.erb
Update title on pushState, closes #33
[rails.git] / app / views / browse / relation_history.html.erb
index 32eb2f400199fecffe388d5354312eb9c66bb370..144c7d47652292a8108517b89546ff364a24bdea 100644 (file)
@@ -1,10 +1,11 @@
 <%
 @name = printable_name @relation
-@title = t('browse.relation_history.relation_history') + ' | ' + @name
+set_title(t('browse.relation_history.relation_history') + ' | ' + @name)
 %>
 
-<h2><%= raw t'browse.relation_history.relation_history_title', :relation_name => link_to(h(@name), :action => "relation", :id => @relation.id) %>
-    <span class="icon close"></span>
+<h2>
+    <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
+    <%= raw t'browse.relation_history.relation_history_title', :relation_name => link_to(h(@name), :action => "relation", :id => @relation.id) %>
 </h2>
 
 <% @relation.old_relations.reverse.each do |relation| %>