<%= 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') %> |
<% @users.each do |f| %>
<%= 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')}" %>
|
<% end %>
<%= 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? %>