start of making nickname optional

This commit is contained in:
wvengen 2013-09-20 22:40:13 +02:00
parent a77c3b59b1
commit e4f0a1e3ed
33 changed files with 92 additions and 48 deletions

View file

@ -4,7 +4,8 @@
%table.table.table-striped
%thead
%tr
%th= t '.login'
- if FoodsoftConfig[:use_nick]
%th= t '.login'
%th= t '.name'
%th= t '.email'
%th= t 'admin.access_to'
@ -13,8 +14,9 @@
%tbody
- for user in @users
%tr
%td= link_to user.nick, [:admin, user]
%td= user.name
%td= link_to show_user(user, full: true), [:admin, user]
- if FoodsoftConfig[:use_nick]
%td= user.name
%td= user.email
%td= format_roles(user)
%td= format_time(user.last_login)