]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_node_details.html.erb
d169f22ac589d086d2e3f25a0d598abae50e0bad
[rails.git] / app / views / browse / _node_details.html.erb
1 <div class='browse-section'>
2   <% if node_details.redacted? %>
3     <%= t 'browse.redacted.message_html',
4           :type => t('browse.redacted.type.node'),
5           :version => node_details.version,
6           :redaction_link => link_to(t('browse.redacted.redaction',
7                                        :id => node_details.redaction.id), node_details.redaction) %>
8   <% else %>
9     <%= render :partial => "common_details", :object => node_details %>
10
11     <% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %>
12       <h4><%= t 'browse.part_of' %></h4>
13       <ul>
14         <% node_details.ways.each do |way| %>
15           <li><%= link_to h(printable_name(way)), { :action => "way", :id => way.id.to_s }, :class => link_class('way', way), :title => link_title(way) %></li>
16         <% end %>
17         <%= render :partial => "containing_relation", :collection => node_details.containing_relation_members %>
18       </ul>
19     <% end %>
20   <% end %>
21 </div>