X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/61fc15aee1f768551acfc7617f55965ca320ed30..c40ad9de0296b28140f13a01a055108b23cb2e7d:/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 %>