1 <% if node.redacted? && !params[:show_redactions] %>
2 <div class="browse-section browse-redacted">
3 <%= t "browse.redacted.message_html",
4 :type => t("browse.redacted.type.node"),
5 :version => node.version,
6 :redaction_link => link_to(t("browse.redacted.redaction",
7 :id => node.redaction.id), node.redaction) %>
10 <%= tag.div :class => ["browse-section", "browse-node", { "text-body-secondary" => node.redacted? }] do %>
11 <%= render :partial => "browse/common_details", :object => node %>
13 <% unless node.ways.empty? and node.containing_relation_members.empty? %>
14 <h4><%= t "browse.part_of" %></h4>
15 <% unless node.ways.empty? %>
16 <details <%= "open" if node.ways.count < 10 %>>
17 <summary><%= t "browse.part_of_ways", :count => node.ways.uniq.count %></summary>
18 <ul class="list-unstyled browse-element-list">
19 <% node.ways.uniq.each do |way| %>
20 <%= element_list_item "way", way do %>
21 <%= element_single_current_link "way", way %>
27 <% unless node.containing_relation_members.empty? %>
28 <details <%= "open" if node.containing_relation_members.count < 10 %>>
29 <summary><%= t "browse.part_of_relations", :count => node.containing_relation_members.uniq.count %></summary>
30 <ul class="list-unstyled browse-element-list">
31 <%= render :partial => "browse/containing_relation", :collection => node.containing_relation_members.uniq %>