2009-02-01 23:09:03 +01:00
|
|
|
%h2 Direkt zu ...
|
2009-01-06 11:49:19 +01:00
|
|
|
%ul
|
|
|
|
%li
|
2009-02-01 23:09:03 +01:00
|
|
|
Foodcoop
|
2009-01-06 11:49:19 +01:00
|
|
|
%ul
|
2009-02-01 23:09:03 +01:00
|
|
|
%li= link_to "Mitglieder", :controller => "foodcoop", :action => "members"
|
|
|
|
%li= link_to "Meine Aufgaben", :controller => "home", :action => "tasks"
|
|
|
|
%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
|
|
|
|
%li= link_to "Bestellübersicht", :controller => "ordering"
|
|
|
|
- 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
|
2009-02-01 23:09:03 +01:00
|
|
|
%li= link_to "Konten aktualisieren", :controller => 'finance/transactions', :action => 'new_collection'
|
|
|
|
%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
|