]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_containing_relation.html.erb
Fix some XSS issues
[rails.git] / app / views / browse / _containing_relation.html.erb
1 <tr>
2   <td><%=
3     linked_name = link_to h(printable_name(containing_relation.relation)), :action => "relation", :id => containing_relation.relation.id.to_s
4
5     if containing_relation.member_role.blank?
6       t 'browse.containing_relation.entry', :relation_name => linked_name
7     else
8       t 'browse.containing_relation.entry_role', :relation_name => linked_name, :relation_role => h(containing_relation.member_role)
9     end
10   %></td>
11 </tr>