2020-02-25 00:38:06 +01:00
|
|
|
- orders = Order.open.started.reject{ |order| order == current_order }
|
2011-06-19 19:56:04 +02:00
|
|
|
- unless orders.empty?
|
2013-02-09 02:01:31 +01:00
|
|
|
%h2= t '.title'
|
2012-10-15 21:19:17 +02:00
|
|
|
%ul.unstyled
|
|
|
|
- orders.each do |order|
|
|
|
|
%li
|
|
|
|
= link_to_ordering(order, 'data-confirm_switch_order' => true)
|
|
|
|
- if order.ends
|
2013-02-09 02:01:31 +01:00
|
|
|
= t '.remaining', remaining: time_ago_in_words(order.ends)
|