From 376148f8e587ba7818e0259f01de7e62e403efe9 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Thu, 23 Feb 2023 14:32:18 +0100 Subject: [PATCH] group order switch view next iteration --- app/views/group_orders/_switch_order.html.haml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/group_orders/_switch_order.html.haml b/app/views/group_orders/_switch_order.html.haml index a13e1a51..70234b39 100644 --- a/app/views/group_orders/_switch_order.html.haml +++ b/app/views/group_orders/_switch_order.html.haml @@ -2,9 +2,9 @@ - unless orders.empty? %ul.nav.nav-pills.nav-stacked .nav-header= t '.title' + %li= link_to t('ui.overview'), :group_orders - orders.each do |order| - %li( class='#{ order == current_order ? "active" : ""}' - data-toggle='tooltip' - data-placement='bottom' - title='#{ order.ends ? t('.remaining', remaining: time_ago_in_words(order.ends)) : "" }') - = link_to_ordering(order, show: true, 'data-confirm_switch_order' => true) + .btn-small.pull-right + =link_to_ordering(order, style: (order == current_order ? 'color: white' : '' ), 'data-confirm_switch_order' => true){ t 'ui.edit' } + %li( class="#{ order == current_order ? 'active' : ''}") + =link_to_ordering(order, show: true, 'data-confirm_switch_order' => true) \ No newline at end of file