]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_node.html.erb
Generate a new style links for node locations in the data browser
[rails.git] / app / views / browse / _node.html.erb
index 2c2cdd4c0eba40613edb6758e6bea2726bb716cf..581c49b09155b30435a499c9361040cc2b9aafcb 100644 (file)
     <% unless node.ways.empty? and node.containing_relation_members.empty? %>
       <h4><%= t 'browse.part_of' %></h4>
       <ul>
-        <% node.ways.each do |way| %>
+        <% node.ways.uniq.each do |way| %>
           <li><%= link_to h(printable_name(way)), { :action => "way", :id => way.id.to_s }, :class => link_class('way', way), :title => link_title(way) %></li>
         <% end %>
-        <%= render :partial => "containing_relation", :collection => node.containing_relation_members %>
+        <%= render :partial => "containing_relation", :collection => node.containing_relation_members.uniq %>
       </ul>
     <% end %>
   </div>