Add last user login and activity
This commit is contained in:
parent
c59ee3a6a7
commit
700eed27b8
8 changed files with 25 additions and 5 deletions
|
|
@ -9,17 +9,17 @@
|
|||
%th= heading_helper User, :name
|
||||
%th= heading_helper User, :email
|
||||
%th= t 'admin.access_to'
|
||||
%th= heading_helper User, :last_login
|
||||
%th= heading_helper User, :last_activity
|
||||
%th(colspan="2")= t 'ui.actions'
|
||||
%tbody
|
||||
- for user in @users
|
||||
- for user in @users
|
||||
%tr
|
||||
%td= link_to show_user(user), [:admin, user]
|
||||
- if FoodsoftConfig[:use_nick]
|
||||
%td= user.name
|
||||
%td= user.email
|
||||
%td= format_roles(user)
|
||||
%td= format_time(user.last_login)
|
||||
%td= format_time(user.last_activity)
|
||||
%td= link_to t('ui.edit'), edit_admin_user_path(user), class: 'btn btn-mini'
|
||||
%td= link_to t('ui.delete'), [:admin, user], :data => {:confirm => t('admin.confirm', name: user.name)},
|
||||
:method => :delete, class: 'btn btn-danger btn-mini'
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@
|
|||
%dd= @user.email
|
||||
%dt= heading_helper User, :phone
|
||||
%dd= @user.phone
|
||||
%dt= heading_helper User, :last_login
|
||||
%dd= format_time(@user.last_login)
|
||||
%dt= heading_helper User, :last_activity
|
||||
%dd= format_time(@user.last_activity)
|
||||
%dt= t 'admin.access_to'
|
||||
%dd= format_roles(@user)
|
||||
.span5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue