]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_relation_details.html.erb
Improve browse design
[rails.git] / app / views / browse / _relation_details.html.erb
index bb7d45e44b3fb37b379566ddfec418bf4c88f261..dcc694c1886fa82aaebb144ba400da5a98e1f6f7 100644 (file)
@@ -1,27 +1,21 @@
-<table>
+<div class='browse-section'>
+  <% if relation_details.redacted? %>
+    <%= t 'browse.redacted.message_html',
+          :type => t('browse.redacted.type.relation'),
+          :version => relation_details.version,
+          :redaction_link => link_to(t('browse.redacted.redaction',
+                                       :id => relation_details.redaction.id), relation_details.redaction) %><
+  <% else %>
+    <%= render :partial => "common_details", :object => relation_details %>
 
 
-  <%= render :partial => "common_details", :object => relation_details %>
+    <% unless relation_details.relation_members.empty? %>
+      <h4><%= t'browse.relation_details.members' %></h4>
+      <ul><%= render :partial => "relation_member", :collection => relation_details.relation_members %></ul>
+    <% end %>
 
 
-  <% 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>   
+    <% unless relation_details.containing_relation_members.empty? %>
+      <h4><%= t'browse.relation_details.part_of' %></h4>
+      <ul><%= render :partial => "containing_relation", :collection => relation_details.containing_relation_members %></ul>
+    <% end %>
   <% end %>
   <% end %>
-
-  <% unless relation_details.containing_relation_members.empty? %>
-    <tr>
-      <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>      
-  <% end %>
-
-</table>
+</div>