foodsoft/app/views/group_orders/_switch_order.html.haml
Philipp Rothmann fec94f9683 fix switch menu
2023-02-21 14:07:02 +01:00

10 lines
441 B
Text

- orders = Order.open.started
- unless orders.empty?
%ul.nav.nav-pills.nav-stacked
.nav-header= t '.title'
- orders.each do |order|
%li( class='#{ order == current_order ? "active" : ""}'
data-toggle='tooltip'
data-placement='bottom'
title='#{ order.ends ? t('.remaining', remaining: time_ago_in_words(order.ends)) : "" }')
= link_to_ordering(order, 'data-confirm_switch_order' => true)