fallback for when nick is nil

This commit is contained in:
wvengen 2013-10-29 18:58:04 +01:00
parent e968919cce
commit 9ba425aafa
6 changed files with 12 additions and 6 deletions

View file

@ -15,7 +15,7 @@
%th= t '.created_at'
- for user in @users
%tr{:class => cycle('even','odd', :name => 'users')}
%td= link_to show_user(user, full: true), [:admin, user]
%td= link_to show_user(user), [:admin, user]
- if FoodsoftConfig[:use_nick]
%td= link_to user.name
%td= format_date(user.created_on)

View file

@ -14,7 +14,7 @@
%tbody
- for user in @users
%tr
%td= link_to show_user(user, full: true), [:admin, user]
%td= link_to show_user(user), [:admin, user]
- if FoodsoftConfig[:use_nick]
%td= user.name
%td= user.email