foodsoft/app/views/admin/base/index.html.haml

46 lines
1.5 KiB
Text
Raw Normal View History

2013-02-03 17:16:42 +01:00
- title t '.title'
%p
2013-02-03 17:16:42 +01:00
%i= t '.first_paragraph'
.row-fluid
.span6
%section
2013-02-03 17:16:42 +01:00
%h2= t '.newest_users'
%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'
- for user in @users
%tr{:class => cycle('even','odd', :name => 'users')}
2013-09-20 22:40:13 +02:00
%td= link_to show_user(user, full: true), [:admin, user]
- if FoodsoftConfig[:use_nick]
%td= link_to user.name
%td= format_date(user.created_on)
2013-02-03 17:16:42 +01:00
= link_to t('.all_users'), admin_users_path
|
2013-02-03 17:16:42 +01:00
= link_to t('.new_user'), new_admin_user_path, class: 'btn btn-primary btn-small'
.span6
%section
2013-02-03 17:16:42 +01:00
%h2= t '.newest_groups'
%table.table.table-striped
%thead
%tr
2013-02-03 17:16:42 +01:00
%th= t '.groupname'
%th= t '.type'
%th= t '.members'
- 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
|
2013-02-03 17:16:42 +01:00
= link_to t('.new_ordergroup'), new_admin_ordergroup_path, class: 'btn btn-primary btn-small'
|
2013-02-03 17:16:42 +01:00
= link_to t('.all_workgroups'), admin_workgroups_path
|
2013-02-03 17:16:42 +01:00
= link_to t('.new_workgroup'), new_admin_workgroup_path, class: 'btn btn-primary btn-small'