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) %>
10 <div class="browse-section browse-relation">
11 <%= render :partial => "common_details", :object => relation %>
13 <% unless relation.containing_relation_members.empty? %>
14 <h4><%= t "browse.part_of" %></h4>
15 <details <%= "open" if relation.containing_relation_members.count < 10 %>>
16 <summary><%= t "browse.part_of_relations", :count => relation.containing_relation_members.uniq.count %></summary>
17 <ul class="list-unstyled">
18 <%= render :partial => "containing_relation", :collection => relation.containing_relation_members.uniq %>
23 <% unless relation.relation_members.empty? %>
24 <h4><%= t ".members" %></h4>
25 <details <%= "open" if relation.relation_members.count < 10 %>>
26 <summary><%= t ".members_count", :count => relation.relation_members.count %></summary>
27 <ul class="list-unstyled">
28 <%= render :partial => "relation_member", :collection => relation.relation_members %>