]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_relation_details.html.erb
Improve handling of sidebar close link
[rails.git] / app / views / browse / _relation_details.html.erb
1 <% if relation_details.redacted? %>
2 <p><%= 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 %></p>
3 <% else %>
4 <table class="browse_details" id="<%= relation_details.version %>">
5
6   <%= render :partial => "common_details", :object => relation_details %>
7
8   <% unless relation_details.relation_members.empty? %>
9     <tr valign="top">
10       <th><%= t'browse.relation_details.members' %></th>
11       <td>
12         <table cellpadding="0">
13           <%= render :partial => "relation_member", :collection => relation_details.relation_members %>
14         </table>
15       </td>
16     </tr>   
17   <% end %>
18
19   <% unless relation_details.containing_relation_members.empty? %>
20     <tr valign="top">
21       <th><%= t'browse.relation_details.part_of' %></th>
22       <td>
23         <table cellpadding="0">
24           <%= render :partial => "containing_relation", :collection => relation_details.containing_relation_members %>
25         </table>
26       </td>
27     </tr>      
28   <% end %>
29
30 </table>
31 <% end %>