foodsoft/app/views/home/_start_nav.haml

44 lines
1.4 KiB
Text
Raw Normal View History

%h2 Direkt zu ...
%ul
2009-01-06 11:49:19 +01:00
%li
Foodcoop
2009-01-06 11:49:19 +01:00
%ul
%li= link_to "Mitglieder", foodcoop_users_path
%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
- 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
Bestellungen
2009-01-06 11:49:19 +01:00
%ul
- 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
Artikelverwaltung
2009-01-06 11:49:19 +01:00
%ul
%li= link_to "Artikel aktualisieren", suppliers_path
%li= link_to "Lagerverwaltung", :controller => 'stockit'
%li= link_to "Lieferanten verwalten", suppliers_path
2009-01-06 11:49:19 +01:00
// Finance
- if @current_user.role_finance?
%li
Finanzbereich
2009-01-06 11:49:19 +01:00
%ul
%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
Administration
2009-01-06 11:49:19 +01:00
%ul
%li= link_to "Neue Bestellgruppe", new_admin_ordergroup_path
%li= link_to "Neues Mitglied", new_admin_user_path