2009-02-18 12:01:51 +01:00
|
|
|
%h2 Direkt zu ...
|
|
|
|
%ul
|
2009-01-06 11:49:19 +01:00
|
|
|
%li
|
2009-02-01 23:09:03 +01:00
|
|
|
Foodcoop
|
2009-01-06 11:49:19 +01:00
|
|
|
%ul
|
2009-11-10 14:15:06 +01:00
|
|
|
%li= link_to "Mitglieder", foodcoop_users_path
|
2010-03-28 16:56:24 +02:00
|
|
|
%li= link_to "Meine Aufgaben", user_tasks_path
|
2009-02-01 23:09:03 +01:00
|
|
|
%li= link_to "Nachricht schreiben", :controller => "messages", :action => "new"
|
2009-01-06 11:49:19 +01:00
|
|
|
|
|
|
|
// Orders
|
2009-02-01 23:09:03 +01:00
|
|
|
- has_ordergroup = !@current_user.ordergroup.nil?
|
|
|
|
- has_orders_role = @current_user.role_orders?
|
|
|
|
- if has_ordergroup || has_orders_role
|
2009-01-06 11:49:19 +01:00
|
|
|
%li
|
2009-02-01 23:09:03 +01:00
|
|
|
Bestellungen
|
2009-01-06 11:49:19 +01:00
|
|
|
%ul
|
2009-02-01 23:09:03 +01:00
|
|
|
- if has_ordergroup
|
2012-08-24 11:11:40 +02:00
|
|
|
%li= link_to "Bestellübersicht", group_orders_path
|
2009-02-01 23:09:03 +01:00
|
|
|
- if has_orders_role
|
|
|
|
%li= link_to "Bestellungen beenden", :controller => 'orders'
|
2009-01-06 11:49:19 +01:00
|
|
|
// Articles
|
|
|
|
- if @current_user.role_article_meta? || @current_user.role_suppliers?
|
|
|
|
%li
|
2009-02-01 23:09:03 +01:00
|
|
|
Artikelverwaltung
|
2009-01-06 11:49:19 +01:00
|
|
|
%ul
|
2009-02-01 23:09:03 +01:00
|
|
|
%li= link_to "Artikel aktualisieren", suppliers_path
|
2009-02-05 16:40:02 +01:00
|
|
|
%li= link_to "Lagerverwaltung", :controller => 'stockit'
|
2009-02-01 23:09:03 +01:00
|
|
|
%li= link_to "Lieferanten verwalten", suppliers_path
|
2009-01-06 11:49:19 +01:00
|
|
|
|
|
|
|
// Finance
|
|
|
|
- if @current_user.role_finance?
|
|
|
|
%li
|
2009-02-01 23:09:03 +01:00
|
|
|
Finanzbereich
|
2009-01-06 11:49:19 +01:00
|
|
|
%ul
|
2011-06-09 21:35:05 +02:00
|
|
|
%li= link_to "Konten aktualisieren", finance_new_transaction_collection_path
|
2009-02-01 23:09:03 +01:00
|
|
|
%li= link_to "Bestellungen abrechnen", finance_root_path
|
2009-01-06 11:49:19 +01:00
|
|
|
|
|
|
|
// Administration
|
|
|
|
- if @current_user.role_admin?
|
|
|
|
%li
|
2009-02-01 23:09:03 +01:00
|
|
|
Administration
|
2009-01-06 11:49:19 +01:00
|
|
|
%ul
|
2009-02-01 23:09:03 +01:00
|
|
|
%li= link_to "Neue Bestellgruppe", new_admin_ordergroup_path
|
|
|
|
%li= link_to "Neues Mitglied", new_admin_user_path
|