Patch from bug #2787 to add icons to data browser pages
[rails.git] / app / views / browse / _relation_member.html.erb
1 <tr>
2   <td><%
3     linked_name = link_to h(printable_name(relation_member.member)), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, :title => link_title(relation_member.member)
4     type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase 
5     %>
6     <span class="<%=
7      css_class(relation_member.member_type.downcase, relation_member.member)
8       %>">
9       <%=
10     if relation_member.member_role.blank?
11       t'browse.relation_member.entry', :type => type_str, :name => linked_name
12     else
13       t'browse.relation_member.entry_role', :type => type_str, :name => linked_name, :role => h(relation_member.member_role)
14     end
15   %>
16   </span></td>
17 </tr>