]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_relation.html.erb
Made rubocop happy by formatting and minor syntax tweaks.
[rails.git] / app / views / browse / _relation.html.erb
index 6befb8aae28daff9106157a0f78c7971ee288157..1644228ae69c8b6803d7f06e1c30963c73d239cf 100644 (file)
@@ -4,7 +4,7 @@
           :type => t('browse.redacted.type.relation'),
           :version => relation.version,
           :redaction_link => link_to(t('browse.redacted.redaction',
-                                       :id => relation.redaction.id), relation.redaction) %><
+                                       :id => relation.redaction.id), relation.redaction) %>
   </div>
 <% else %>
   <div class='browse-section browse-relation'>
@@ -17,7 +17,7 @@
 
     <% 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 %>