]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_relation.html.erb
Merge pull request #2266 from systemed/patch-2
[rails.git] / app / views / browse / _relation.html.erb
1 <% if relation.redacted? %>
2   <div class='browse-section browse-redacted'>
3     <%= t "browse.redacted.message_html",
4           :type => t("browse.redacted.type.relation"),
5           :version => relation.version,
6           :redaction_link => link_to(t("browse.redacted.redaction",
7                                        :id => relation.redaction.id), relation.redaction) %>
8   </div>
9 <% else %>
10   <div class='browse-section browse-relation'>
11     <%= render :partial => "common_details", :object => relation %>
12
13     <% unless relation.containing_relation_members.empty? %>
14       <h4><%= t "browse.part_of" %></h4>
15       <ul><%= render :partial => "containing_relation", :collection => relation.containing_relation_members.uniq %></ul>
16     <% end %>
17
18     <% unless relation.relation_members.empty? %>
19       <h4><%= t ".members" %></h4>
20       <ul><%= render :partial => "relation_member", :collection => relation.relation_members %></ul>
21     <% end %>
22   </div>
23 <% end %>