foodsoft/app/views/group_orders/_switch_order.html.haml

10 lines
330 B
Text
Raw Normal View History

- orders = Order.open.started.reject{ |order| order == current_order }
- unless orders.empty?
2013-02-09 02:01:31 +01:00
%h2= t '.title'
%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)