2011-06-19 19:56:04 +02:00
|
|
|
- orders = Order.open.reject{ |order| order == current_order }
|
|
|
|
- unless orders.empty?
|
2012-10-15 21:19:17 +02:00
|
|
|
%h2 Laufende Bestellungen
|
|
|
|
%ul.unstyled
|
|
|
|
- orders.each do |order|
|
|
|
|
%li
|
|
|
|
= link_to_ordering(order, 'data-confirm_switch_order' => true)
|
|
|
|
- if order.ends
|
|
|
|
noch #{time_ago_in_words(order.ends)}
|