From: Tom Hughes Date: Fri, 15 Mar 2024 18:01:42 +0000 (+0000) Subject: Fix display of containing relations X-Git-Tag: live~725 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b42c2608b14d344ca4f9771225c21808acc77dcc Fix display of containing relations --- diff --git a/app/views/browse/_containing_relation.html.erb b/app/views/browse/_containing_relation.html.erb index 2547ff7aa..0b6a2c8f8 100644 --- a/app/views/browse/_containing_relation.html.erb +++ b/app/views/browse/_containing_relation.html.erb @@ -1,4 +1,4 @@ -
  • <%= linked_name = link_to printable_element_name(containing_relation.relation), :action => "relation", :id => containing_relation.relation.id.to_s +
  • <%= linked_name = link_to printable_element_name(containing_relation.relation), relation_path(containing_relation.relation) if containing_relation.member_role.blank? t ".entry_html", :relation_name => linked_name else diff --git a/app/views/browse/_way.html.erb b/app/views/browse/_way.html.erb index d93321a0f..19c5ff590 100644 --- a/app/views/browse/_way.html.erb +++ b/app/views/browse/_way.html.erb @@ -15,7 +15,7 @@
    > <%= t "browse.part_of_relations", :count => way.containing_relation_members.uniq.count %>
      - <%= render :partial => "containing_relation", :collection => way.containing_relation_members.uniq %> + <%= render :partial => "browse/containing_relation", :collection => way.containing_relation_members.uniq %>
    <% end %>