Sha256: 570d09d1b1afa5632828f85c81c407ddd59374712b00b331d986fd1167c51118
Contents?: true
Size: 947 Bytes
Versions: 3
Compression:
Stored size: 947 Bytes
Contents
<h1><%= t('activerecord.models.users') %></h1> <table class='table table-striped'> <thead> <tr> <th><%= t 'authentication.name' %></th> <th><%= t 'activerecord.attributes.user.email' %></th> <th><%= t('question_mark_inverted') %><%= t('activerecord.attributes.user.admin') %><%= t('question_mark') %></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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tkh_authentication-0.1.7 | app/views/users/index.html.erb |
tkh_authentication-0.1.6 | app/views/users/index.html.erb |
tkh_authentication-0.1.5 | app/views/users/index.html.erb |