Fix display of containing relations
This commit is contained in:
parent
5b916792cc
commit
b42c2608b1
2 changed files with 2 additions and 2 deletions
|
@ -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?
|
if containing_relation.member_role.blank?
|
||||||
t ".entry_html", :relation_name => linked_name
|
t ".entry_html", :relation_name => linked_name
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<details <%= "open" if way.containing_relation_members.count < 10 %>>
|
<details <%= "open" if way.containing_relation_members.count < 10 %>>
|
||||||
<summary><%= t "browse.part_of_relations", :count => way.containing_relation_members.uniq.count %></summary>
|
<summary><%= t "browse.part_of_relations", :count => way.containing_relation_members.uniq.count %></summary>
|
||||||
<ul class="list-unstyled">
|
<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>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue