X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/61fc15aee1f768551acfc7617f55965ca320ed30..fff5a755d367dba9d1f845ca64653c7893915e5a:/app/views/browse/_relation.html.erb
diff --git a/app/views/browse/_relation.html.erb b/app/views/browse/_relation.html.erb
index 10046d0bb..235a7e91d 100644
--- a/app/views/browse/_relation.html.erb
+++ b/app/views/browse/_relation.html.erb
@@ -10,14 +10,14 @@
<%= render :partial => "common_details", :object => relation %>
+ <% unless relation.containing_relation_members.empty? %>
+
<%= t'browse.part_of' %>
+
<%= render :partial => "containing_relation", :collection => relation.containing_relation_members.uniq %>
+ <% end %>
+
<% unless relation.relation_members.empty? %>
<%= t'browse.relation.members' %>
<%= render :partial => "relation_member", :collection => relation.relation_members %>
<% end %>
-
- <% unless relation.containing_relation_members.empty? %>
-
<%= t'browse.part_of' %>
-
<%= render :partial => "containing_relation", :collection => relation.containing_relation_members %>
- <% end %>
<% end %>