diff --git a/app/views/admin/users/_user.html.erb b/app/views/admin/users/_user.html.erb index 2ca9474..94699ad 100644 --- a/app/views/admin/users/_user.html.erb +++ b/app/views/admin/users/_user.html.erb @@ -1,35 +1,36 @@ <%= link_to "##{user.id}", admin_user_path(user) %> <%= link_to user.username, admin_user_path(user) %> <%= user.email %> <%= user.user_type %> <%= I18n.l(user.created_at, format: :short) %> + <%= I18n.l(user.login_at, format: :short) rescue '-' %> <%= inline_list @baculized_host_names[user.id] %> <%= inline_list @unverified_host_names[user.id] %> <%= inline_list @non_baculized_host_names[user.id] %> <%= link_to admin_user_path(user) do %> <% end %> <% if user.editable? %> <%= link_to edit_admin_user_path(user) do %> <% end %> <% end %> <% if user.enabled? %> <%= link_to ban_admin_user_path(user), method: :patch, class: 'btn btn-default', data: { confirm: "User #{user.username} will be banned" } do %> Ban <% end %> <% else %> <%= link_to unban_admin_user_path(user), method: :patch, class: 'btn btn-default', data: { confirm: "User #{user.username} will be unbanned" } do %> Unban <% end %> <% end %> diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb index 1f06a17..009c388 100644 --- a/app/views/admin/users/index.html.erb +++ b/app/views/admin/users/index.html.erb @@ -1,35 +1,36 @@
<%= link_to new_admin_user_path, class: "btn btn-default", role: "button" do %> New Admin <% end %>

Users

+ <%= render partial: 'user', collection: @users %>
id Username Email User type Created atLast login at Clients Unverified hosts Pending hosts Actions Ban