]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_relation_details.html.erb
Convert search to pushState
[rails.git] / app / views / browse / _relation_details.html.erb
index e52c9981f016846837f4a9e5ad1b5873216d9d93..1c0f4c93c004100a1d7a842dfcaa7dc6ae8ffacc 100644 (file)
@@ -1,27 +1,23 @@
-<table>
-
+<div class="browse_details" id="<%= relation_details.version %>">
+<% if relation_details.redacted? %>
+  <div class='browse-section'>
+    <%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.relation'), :redaction_link => link_to(t('browse.redacted.redaction', :id => relation_details.redaction.id), relation_details.redaction), :version => relation_details.version %><
+  </div>
+<% else %>
   <%= render :partial => "common_details", :object => relation_details %>
 
   <% unless relation_details.relation_members.empty? %>
-    <tr valign="top">
-      <th><%= t'browse.relation_details.members' %></th>
-      <td>
-        <table cellpadding="0">
-          <%= render :partial => "relation_member", :collection => relation_details.relation_members %>
-        </table>
-      </td>
-    </tr>   
+    <div class='browse-section'>
+      <h4><%= t'browse.relation_details.members' %></h4>
+      <ul><%= render :partial => "relation_member", :collection => relation_details.relation_members %></ul>
+    </div>
   <% end %>
 
   <% unless relation_details.containing_relation_members.empty? %>
-    <tr valign="top">
-      <th><%= t'browse.relation_details.part_of' %></th>
-      <td>
-        <table cellpadding="0">
-          <%= render :partial => "containing_relation", :collection => relation_details.containing_relation_members %>
-        </table>
-      </td>
-    </tr>      
+    <div class='browse-section'>
+      <h4><%= t'browse.relation_details.part_of' %></h4>
+      <ul><%= render :partial => "containing_relation", :collection => relation_details.containing_relation_members %></ul>
+    </div>
   <% end %>
-
-</table>
+<% end %>
+</div>