2012-10-06 17:14:57 +02:00
|
|
|
.well.well-small
|
2013-02-04 00:46:22 +01:00
|
|
|
%h3= t '.title'
|
2012-10-06 17:14:57 +02:00
|
|
|
%ul.nav.nav-list
|
2013-02-04 00:46:22 +01:00
|
|
|
%li.nav-header= t '.foodcoop'
|
2023-06-10 10:32:16 +02:00
|
|
|
- unless FoodsoftConfig[:disable_members_overview]
|
|
|
|
%li= link_to t('.members'), foodcoop_users_path
|
2013-02-04 00:46:22 +01:00
|
|
|
%li= link_to t('.tasks'), user_tasks_path
|
2012-10-06 17:14:57 +02:00
|
|
|
|
|
|
|
- has_ordergroup = !@current_user.ordergroup.nil?
|
|
|
|
- has_orders_role = @current_user.role_orders?
|
|
|
|
- if has_ordergroup || has_orders_role
|
2013-02-04 00:46:22 +01:00
|
|
|
%li.nav-header= t '.orders.title'
|
2012-10-06 17:14:57 +02:00
|
|
|
- if has_ordergroup
|
2013-02-04 00:46:22 +01:00
|
|
|
%li= link_to t('.orders.overview'), group_orders_path
|
2012-10-06 17:14:57 +02:00
|
|
|
- if has_orders_role
|
2013-02-04 00:46:22 +01:00
|
|
|
%li= link_to t('.orders.end'), :controller => 'orders'
|
2012-10-06 17:14:57 +02:00
|
|
|
// Articles
|
|
|
|
- if @current_user.role_article_meta? || @current_user.role_suppliers?
|
2013-02-04 00:46:22 +01:00
|
|
|
%li.nav-header= t '.products.title'
|
|
|
|
%li= link_to t('.products.edit'), suppliers_path
|
|
|
|
%li= link_to t('.products.edit_stock'), :controller => 'stockit'
|
|
|
|
%li= link_to t('.products.edit_suppliers'), suppliers_path
|
2012-10-06 17:14:57 +02:00
|
|
|
|
|
|
|
// Finance
|
|
|
|
- if @current_user.role_finance?
|
2013-02-04 00:46:22 +01:00
|
|
|
%li.nav-header= t '.finances.title'
|
|
|
|
%li= link_to t('.finances.accounts'), finance_new_transaction_collection_path
|
|
|
|
%li= link_to t('.finances.settle'), finance_root_path
|
2012-10-06 17:14:57 +02:00
|
|
|
|
|
|
|
// Administration
|
|
|
|
- if @current_user.role_admin?
|
2013-02-04 00:46:22 +01:00
|
|
|
%li.nav-header= t '.admin'
|
|
|
|
%li= link_to t('.new_ordergroup'), new_admin_ordergroup_path
|
|
|
|
%li= link_to t('.new_user'), new_admin_user_path
|