Sha256: 605a68d6f305158fb550013114860ec41373f8b44d37f17cc640944bc2e7ce8c
Contents?: true
Size: 824 Bytes
Versions: 8
Compression:
Stored size: 824 Bytes
Contents
<h1>Listing Users</h1> <table class='table table-striped'> <thead> <tr> <th><%= t 'authentication.name' %></th> <th><%= t 'activerecord.attributes.user.email' %></th> <th>Admin?</th> </tr> </thead> <tbody> <% @users.each do |user| %> <tr> <td><%= user.name %></td> <td><%= user.email %></td> <td> <% unless user.admin? %> <span class="label label-important">X</span> <%= link_to t('authentication.enable_admin'), make_admin_user_path(user), class: 'btn btn-mini', method: :post %> <% else %> <span class="label label-success">✓</span> <%= link_to t('authentication.disable_admin'), remove_admin_user_path(user), class: 'btn btn-mini', method: :post %> <% end -%> </td> </tr> <% end %> </tbody> </table> <%= render 'shared/admin_sidebar' %>
Version data entries
8 entries across 8 versions & 1 rubygems