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'
|
2012-10-15 21:19:17 +02:00
|
|
|
- orders.each do |order|
|
2023-02-20 22:33:42 +01:00
|
|
|
%li( class='#{ order == current_order ? "active" : ""}'
|
|
|
|
data-toggle='tooltip'
|
2023-02-21 14:07:02 +01:00
|
|
|
data-placement='bottom'
|
|
|
|
title='#{ order.ends ? t('.remaining', remaining: time_ago_in_words(order.ends)) : "" }')
|
|
|
|
= link_to_ordering(order, 'data-confirm_switch_order' => true)
|