]> git.openstreetmap.org Git - rails.git/commitdiff
Use relation icon instead of word in containing relations
authorAnton Khorev <tony29@yandex.ru>
Wed, 4 Dec 2024 07:30:44 +0000 (10:30 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 4 Dec 2024 07:30:44 +0000 (10:30 +0300)
app/views/browse/_containing_relation.html.erb
config/locales/en.yml

index febb3e129fcbdd4575a80cc4d024cab458415b42..2ab0fcf9785d6bd445cabdbdcbbc0eef77af011d 100644 (file)
@@ -1,6 +1,6 @@
-<li><%= linked_name = link_to printable_element_name(containing_relation.relation), containing_relation.relation
+<li><%= linked_name = link_to printable_element_name(containing_relation.relation), containing_relation.relation, :class => "relation"
         if containing_relation.member_role.blank?
-          t ".entry_html", :relation_name => linked_name
+          linked_name
         else
           t ".entry_role_html", :relation_name => linked_name, :relation_role => containing_relation.member_role
         end %>
index b190c2ca0bca1924078caeeee55e052b08aa7e06..3511e7f63c894e36b071df46cd7e901d21031ad8 100644 (file)
@@ -356,8 +356,7 @@ en:
         way: "Way"
         relation: "Relation"
     containing_relation:
-      entry_html: "Relation %{relation_name}"
-      entry_role_html: "Relation %{relation_name} (as %{relation_role})"
+      entry_role_html: "%{relation_name} (as %{relation_role})"
     not_found:
       title: Not Found
       sorry: "Sorry, %{type} #%{id} could not be found."