9 lines
330 B
Text
9 lines
330 B
Text
- orders = Order.open.started.reject{ |order| order == current_order }
|
|
- unless orders.empty?
|
|
%h2= t '.title'
|
|
%ul.unstyled
|
|
- orders.each do |order|
|
|
%li
|
|
= link_to_ordering(order, 'data-confirm_switch_order' => true)
|
|
- if order.ends
|
|
= t '.remaining', remaining: time_ago_in_words(order.ends)
|