1 <% if relation.redacted? && !params[:show_redactions] %>
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 <%= tag.div :class => ["browse-section", "browse-relation", { "text-muted" => relation.redacted? }] do %>
11 <%= render :partial => "browse/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 => "browse/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 => "browse/relation_member", :collection => relation.relation_members %>