2012-10-08 16:20:24 +02:00
|
|
|
- if User.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @users
|
2012-10-08 15:24:32 +02:00
|
|
|
%table.table.table-striped
|
2009-01-06 11:49:19 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2009-03-22 13:25:32 +01:00
|
|
|
%th Benutzername
|
2009-02-02 16:35:43 +01:00
|
|
|
%th Name
|
2009-01-06 11:49:19 +01:00
|
|
|
%th Email
|
|
|
|
%th Telefon
|
|
|
|
%th Bestellgruppe
|
|
|
|
%th Arbeitsgruppe(n)
|
|
|
|
%tbody
|
2012-10-08 15:24:32 +02:00
|
|
|
- for user in @users
|
|
|
|
%tr
|
|
|
|
%td= user.nick
|
|
|
|
%td= user.name if @current_user.role_admin? || user.settings["profile.nameIsPublic"] == '1'
|
|
|
|
%td= user.email if @current_user.role_admin? || user.settings["profile.emailIsPublic"] == '1'
|
|
|
|
%td= user.phone if @current_user.role_admin? || user.settings["profile.phoneIsPublic"] == '1'
|
|
|
|
%td= user.ordergroup_name
|
|
|
|
%td= user.workgroups.collect(&:name).join(', ')
|
|
|
|
%td= link_to_new_message(message_params: {mail_to: user.id})
|
2009-01-06 11:49:19 +01:00
|
|
|
|