2009-01-06 11:49:19 +01:00
|
|
|
%h2= _('Go to ...')
|
|
|
|
%ul
|
|
|
|
%li
|
|
|
|
= _('FoodCoop')
|
|
|
|
%ul
|
|
|
|
%li= link_to _("Member list"), :controller => "index", :action => "foodcoop_members"
|
|
|
|
%li= link_to _("My tasks"), :controller => "tasks", :action => "myTasks"
|
|
|
|
%li= link_to _("Write message"), :controller => "messages", :action => "new"
|
|
|
|
|
|
|
|
// Orders
|
2009-01-14 12:46:01 +01:00
|
|
|
- hasOrdergroup = !@current_user.find_ordergroup.nil?
|
2009-01-06 11:49:19 +01:00
|
|
|
- hasOrdersRole = @current_user.role_orders?
|
2009-01-14 12:46:01 +01:00
|
|
|
- if hasOrdergroup || hasOrdersRole
|
2009-01-06 11:49:19 +01:00
|
|
|
%li
|
|
|
|
= _("Orders")
|
|
|
|
%ul
|
2009-01-14 12:46:01 +01:00
|
|
|
- if hasOrdergroup
|
2009-01-06 11:49:19 +01:00
|
|
|
%li= link_to _('Order summary'), :controller => "ordering"
|
|
|
|
- if hasOrdersRole
|
|
|
|
%li= link_to _('Finish order'), :controller => 'orders'
|
|
|
|
// Articles
|
|
|
|
- if @current_user.role_article_meta? || @current_user.role_suppliers?
|
|
|
|
%li
|
|
|
|
= _("Artcle management")
|
|
|
|
%ul
|
|
|
|
%li= link_to _("Refresh articles"), :controller => "articles", :action => 'list'
|
|
|
|
%li= link_to _("Suppliers"), :controller => 'suppliers', :action => 'list'
|
|
|
|
|
|
|
|
// Finance
|
|
|
|
- if @current_user.role_finance?
|
|
|
|
%li
|
|
|
|
= _('Financial management')
|
|
|
|
%ul
|
|
|
|
%li= link_to _("Update account balances"), :controller => 'finance', :action => 'new_transactions'
|
|
|
|
%li= link_to _('Cancel orders'), :controller => 'finance'
|
|
|
|
|
|
|
|
// Administration
|
|
|
|
- if @current_user.role_admin?
|
|
|
|
%li
|
|
|
|
= _('Administration')
|
|
|
|
%ul
|
2009-01-14 12:46:01 +01:00
|
|
|
%li= link_to _("New ordergroup"), :controller => "admin", :action => "newOrdergroup"
|
2009-01-06 11:49:19 +01:00
|
|
|
%li= link_to _("New user"), :controller => "admin", :action => "newUser"
|