app/views/users/index.html.erb in tkh_authentication-0.1.7 vs app/views/users/index.html.erb in tkh_authentication-0.1.8

- old
+ new

@@ -1,29 +1,33 @@ <h1><%= t('activerecord.models.users') %></h1> +<%= render 'details/tab_admin_menu' %> + <table class='table table-striped'> <thead> - <tr> + <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> + <th><%= t('actions') %></th> </tr> </thead> - + <tbody> <% @users.each do |user| %> <tr> - <td><%= user.name %></td> + <td><%= link_to user.name, detail_path(user) %></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> + <td><%= link_to t('edit'), edit_detail_path(user), class: 'btn btn-mini' %></td> </tr> <% end %> </tbody> </table> -<%= render 'shared/admin_sidebar' %> \ No newline at end of file +<%= render 'shared/admin_sidebar' %>