2023-02-20 22:33:42 +01:00
|
|
|
- orders = Order.open.started
|
2011-06-19 19:56:04 +02:00
|
|
|
- unless orders.empty?
|
2023-02-20 22:33:42 +01:00
|
|
|
%ul.nav.nav-pills.nav-stacked
|
|
|
|
.nav-header= t '.title'
|
2023-02-23 14:32:18 +01:00
|
|
|
%li= link_to t('ui.overview'), :group_orders
|
2012-10-15 21:19:17 +02:00
|
|
|
- orders.each do |order|
|
2023-02-23 14:32:18 +01:00
|
|
|
.btn-small.pull-right
|
|
|
|
=link_to_ordering(order, style: (order == current_order ? 'color: white' : '' ), 'data-confirm_switch_order' => true){ t 'ui.edit' }
|
|
|
|
%li( class="#{ order == current_order ? 'active' : ''}")
|
|
|
|
=link_to_ordering(order, show: true, 'data-confirm_switch_order' => true)
|