]> git.openstreetmap.org Git - rails.git/commitdiff
Fix display of containing relations
authorTom Hughes <tom@compton.nu>
Fri, 15 Mar 2024 18:01:42 +0000 (18:01 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 15 Mar 2024 18:01:42 +0000 (18:01 +0000)
app/views/browse/_containing_relation.html.erb
app/views/browse/_way.html.erb

index 2547ff7aa6a7cbcae116c43300b68bfc3c30c045..0b6a2c8f8b6f9f2a86108d997af1d1d7bd705eaa 100644 (file)
@@ -1,4 +1,4 @@
-<li><%= linked_name = link_to printable_element_name(containing_relation.relation), :action => "relation", :id => containing_relation.relation.id.to_s
+<li><%= 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
index d93321a0fab98f3b14a93cbf23d3f9267d7076fa..19c5ff59087f86e4a9f5f4b52ecdbfdcc51a4202 100644 (file)
@@ -15,7 +15,7 @@
       <details <%= "open" if way.containing_relation_members.count < 10 %>>
         <summary><%= t "browse.part_of_relations", :count => way.containing_relation_members.uniq.count %></summary>
         <ul class="list-unstyled">
-          <%= render :partial => "containing_relation", :collection => way.containing_relation_members.uniq %>
+          <%= render :partial => "browse/containing_relation", :collection => way.containing_relation_members.uniq %>
         </ul>
       </details>
     <% end %>