]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_relation.html.erb
Adds first try to add key to cyclemap
[rails.git] / app / views / browse / _relation.html.erb
index 10046d0bb8868802ad50f5f37c4dc6266ab1ce02..1644228ae69c8b6803d7f06e1c30963c73d239cf 100644 (file)
@@ -17,7 +17,7 @@
 
     <% unless relation.containing_relation_members.empty? %>
       <h4><%= t'browse.part_of' %></h4>
 
     <% unless relation.containing_relation_members.empty? %>
       <h4><%= t'browse.part_of' %></h4>
-      <ul><%= render :partial => "containing_relation", :collection => relation.containing_relation_members %></ul>
+      <ul><%= render :partial => "containing_relation", :collection => relation.containing_relation_members.uniq %></ul>
     <% end %>
   </div>
 <% end %>
     <% end %>
   </div>
 <% end %>