]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/relation_history.html.erb
Improve browse design
[rails.git] / app / views / browse / relation_history.html.erb
index 6112d834e5530781f9a6246b851f3ed836ba9a8d..6481d490a1e27bd9cff709fadee3e3ba1c8d261e 100644 (file)
@@ -1,15 +1,19 @@
 <%
-@name = printable_name @relation
-@title = t('browse.relation_history.relation_history') + ' | ' + @name
+  @name = printable_name @relation
+  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) %></h2>
+<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| %>
   <%= render :partial => "relation_details", :object => relation %>
 <% end %>
 
-<ul class='secondary-actions clearfix'>
-  <li><%= link_to(t('browse.relation_history.download_xml'), :controller => "old_relation", :action => "history") %></li>
-  <li><%= link_to(t('browse.relation_history.view_details'), :action => "relation") %></li>
-</ul>
+<div class='secondary-actions'>
+  <%= link_to(t('browse.relation_history.download_xml'), :controller => "old_relation", :action => "history") %>
+  &middot;
+  <%= link_to(t('browse.relation_history.view_details'), :action => "relation") %>
+</div>