Sha256: 6c766bc5b1cd5b78c758c92768354905d9e9bf05570ef25a526d79a7dbf30ad5
Contents?: true
Size: 844 Bytes
Versions: 3
Compression:
Stored size: 844 Bytes
Contents
<% page_title "Users" %> <div id="user-index"> <table class="scaffolded"> <tr> <th>Name</th> <% if admin? %> <th>Actions</th> <% end %> </tr> <% @users.each do |user| -%> <tr class="<%= cycle('odd', 'even') %>"> <td> <% if admin? && user.admin? %> (<strong class='admin'>admin</strong>) <% end %> <%= link_to(user.label, user_path(user)) %><%= (", " + user.affiliation) unless user.affiliation.blank? %> </td> <% if admin? %> <td nowrap="nowrap"> <%= link_to "Edit", edit_user_path(user), :class => "editable" %> <%= link_to "Delete...", user, :method => :delete, :data => { :confirm => "Delete user #{h user.label}?" }, :class => "deletable" %> </td> <% end %> </tr> <% end -%> </table> </div>
Version data entries
3 entries across 3 versions & 1 rubygems