group order make 'current orders' more obvious
This commit is contained in:
parent
ae09bbaced
commit
5e9bd17606
2 changed files with 9 additions and 8 deletions
|
@ -1,9 +1,10 @@
|
|||
- orders = Order.open.started.reject{ |order| order == current_order }
|
||||
- orders = Order.open.started
|
||||
- unless orders.empty?
|
||||
%h2= t '.title'
|
||||
%ul.unstyled
|
||||
%ul.nav.nav-pills.nav-stacked
|
||||
.nav-header= t '.title'
|
||||
- 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)
|
||||
%li( class='#{ order == current_order ? "active" : ""}'
|
||||
data-toggle='tooltip'
|
||||
data-placement='left'
|
||||
title='#{t('.remaining', remaining: time_ago_in_words(order.ends))}')
|
||||
= link_to_ordering(order, 'data-confirm_switch_order' => true){ order.ends ? order.name : order.name }
|
||||
|
|
|
@ -1101,7 +1101,7 @@ en:
|
|||
sum: Sum
|
||||
title: Your order result for %{order}
|
||||
switch_order:
|
||||
remaining: "%{remaining} remaining"
|
||||
remaining: "%{remaining} until order closes"
|
||||
title: Current orders
|
||||
update:
|
||||
error_general: The order couldn’t be updated due to a bug.
|
||||
|
|
Loading…
Reference in a new issue