]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_containing_relation.html.erb
Remove non-functional code
[rails.git] / app / views / browse / _containing_relation.html.erb
index ee704acc87cd52e48db190fc7cce453e5d5e295f..6cc0cce6e04c00c5f21dd3d3ac6e0475823f1dbc 100644 (file)
@@ -1,8 +1,11 @@
 <tr>
 <tr>
-  <td>
-    <%= link_to t('browse.containing_relation.relation', :relation_name => h(printable_name(containing_relation.relation))), :action => "relation", :id => containing_relation.relation.id.to_s %>
-    <% unless containing_relation.member_role.blank? %>
-      <%= t 'browse.containing_relation.relation_as', :relation_role => h(containing_relation.member_role) %>
-    <% end %>
-  </td>
+  <td><%=
+    linked_name = link_to h(printable_name(containing_relation.relation)), :action => "relation", :id => containing_relation.relation.id.to_s
+
+    if containing_relation.member_role.blank?
+      raw t 'browse.containing_relation.entry', :relation_name => linked_name
+    else
+      raw t 'browse.containing_relation.entry_role', :relation_name => linked_name, :relation_role => h(containing_relation.member_role)
+    end
+  %></td>
 </tr>
 </tr>