<%= t('admin.users.list_users') %>

<%= t('admin.page_title.list')%>

<%= link_to raw(" #{t('admin.users.add_user')}"), {action: :new}, class: "btn btn-primary pull-right" %>
<% @users.each do |f| %> <% end %>
<%= t('admin.table.id') %> <%= t('admin.table.username') %> <%= t('admin.table.email') %> <%= t('admin.table.role') %> <%= t('admin.table.last_login') %> <%= t('admin.table.actions') %>
<%= f.id %> <%= f.username %> <%= f.email %> <%= f.role %> <%= f.last_login_at.strftime("%Y-%m-%d %H:%M:%S") if f.last_login_at.present? %> <%= link_to raw(''), {action: :edit, id: f.id }, class: "btn btn-default btn-xs", title: "#{t('admin.button.edit')}" %> <%= link_to raw(''), { action: :destroy, id: f.id }, method: :delete, data: { confirm: t('admin.message.delete_item') }, class: "btn btn-danger btn-xs", title: "#{t('admin.button.delete')}" %>
<%= content_tag("div", raw(t('admin.message.data_found_list')), class: "alert alert-warning") if @users.empty? %> <%= will_paginate @users, renderer: BootstrapPagination::Rails if @users.present? %>