adding css class to users on project settings members screen based on the principals status

pull/41/head
Jens Ulferts 14 years ago committed by Romano Licker
parent 53e8a1809e
commit 4707271c14
  1. 2
      app/views/projects/settings/_members.rhtml

@ -16,7 +16,7 @@
<% members.each do |member| %>
<% next if member.new_record? %>
<tr id="member-<%= member.id %>" class="<%= cycle 'odd', 'even' %> member">
<td class="<%= member.principal.class.name.downcase %>"><%= link_to_user member.principal %></td>
<td class="<%= member.principal.class.name.downcase %> <%= user_status_class member.principal%>"><%= link_to_user member.principal %></td>
<td class="roles">
<span id="member-<%= member.id %>-roles"><%=h member.roles.sort.collect(&:to_s).join(', ') %></span>
<% if authorize_for('members', 'edit') %>

Loading…
Cancel
Save