2013-02-03 17:16:42 +01:00
|
|
|
- title t '.title'
|
2009-02-01 21:53:08 +01:00
|
|
|
|
|
|
|
%p
|
2013-02-03 17:16:42 +01:00
|
|
|
%i= t '.first_paragraph'
|
2012-10-15 21:19:17 +02:00
|
|
|
.row-fluid
|
|
|
|
.span6
|
|
|
|
%section
|
2013-02-03 17:16:42 +01:00
|
|
|
%h2= t '.newest_users'
|
2012-10-15 21:19:17 +02:00
|
|
|
%table.table.table-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
2013-09-20 22:40:13 +02:00
|
|
|
- if FoodsoftConfig[:use_nick]
|
|
|
|
%th= t '.username'
|
2013-02-03 17:16:42 +01:00
|
|
|
%th= t '.name'
|
|
|
|
%th= t '.created_at'
|
2012-10-15 21:19:17 +02:00
|
|
|
- for user in @users
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'users')}
|
2013-10-29 18:58:04 +01:00
|
|
|
%td= link_to show_user(user), [:admin, user]
|
2013-09-20 22:40:13 +02:00
|
|
|
- if FoodsoftConfig[:use_nick]
|
|
|
|
%td= link_to user.name
|
2012-10-15 21:19:17 +02:00
|
|
|
%td= format_date(user.created_on)
|
2013-02-03 17:16:42 +01:00
|
|
|
= link_to t('.all_users'), admin_users_path
|
2012-10-15 21:19:17 +02:00
|
|
|
|
|
2013-02-03 17:16:42 +01:00
|
|
|
= link_to t('.new_user'), new_admin_user_path, class: 'btn btn-primary btn-small'
|
2012-10-15 21:19:17 +02:00
|
|
|
.span6
|
|
|
|
%section
|
2013-02-03 17:16:42 +01:00
|
|
|
%h2= t '.newest_groups'
|
2012-10-15 21:19:17 +02:00
|
|
|
%table.table.table-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
2013-02-03 17:16:42 +01:00
|
|
|
%th= t '.groupname'
|
|
|
|
%th= t '.type'
|
|
|
|
%th= t '.members'
|
2012-10-15 21:19:17 +02:00
|
|
|
- for group in @groups
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'groups')}
|
|
|
|
%td= link_to group.name, [:admin, group]
|
|
|
|
%td= group.class.model_name.human
|
|
|
|
%td= group.users.size
|
2013-02-03 17:16:42 +01:00
|
|
|
= link_to t('.all_ordergroups'), admin_ordergroups_path
|
2012-10-15 21:19:17 +02:00
|
|
|
|
|
2013-02-03 17:16:42 +01:00
|
|
|
= link_to t('.new_ordergroup'), new_admin_ordergroup_path, class: 'btn btn-primary btn-small'
|
2012-10-15 21:19:17 +02:00
|
|
|
|
|
2013-02-03 17:16:42 +01:00
|
|
|
= link_to t('.all_workgroups'), admin_workgroups_path
|
2012-10-15 21:19:17 +02:00
|
|
|
|
|
2013-02-03 17:16:42 +01:00
|
|
|
= link_to t('.new_workgroup'), new_admin_workgroup_path, class: 'btn btn-primary btn-small'
|