diff options
author | Azul <azul@leap.se> | 2014-05-22 14:57:29 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-26 13:00:05 +0200 |
commit | 19bce0f114180f355f0df367cf6d21bd957734a6 (patch) | |
tree | 3d82be78de73a28d713895b76fee0c34f651270e /engines/support/app/views/tickets/_tabs.html.haml | |
parent | 560eb039f4778257559395583e1233d052d44127 (diff) |
tickets: structure i18n
Diffstat (limited to 'engines/support/app/views/tickets/_tabs.html.haml')
-rw-r--r-- | engines/support/app/views/tickets/_tabs.html.haml | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/engines/support/app/views/tickets/_tabs.html.haml b/engines/support/app/views/tickets/_tabs.html.haml index 445a909..7872bb5 100644 --- a/engines/support/app/views/tickets/_tabs.html.haml +++ b/engines/support/app/views/tickets/_tabs.html.haml @@ -3,21 +3,17 @@ -# - unless action?(:new) or action?(:create) %ul.nav.nav-pills.pull-right.slim - %li{:class=> ("active" if search_order.start_with? 'created_at')} - = link_to_order('created') - %li{:class=> ("active" if search_order.start_with? 'updated_at')} - = link_to_order('updated') + - %w(created updated).each do |order| + %li{:class=> ("active" if search_order.start_with? order)} + = link_to_order(order) -# -# STATUS FILTER TABS -# %ul.nav.nav-tabs - if logged_in? - %li{:class => ("active" if search_status == 'open')} - = link_to_status 'open' - %li{:class => ("active" if search_status == 'closed')} - = link_to_status 'closed' - %li{:class => ("active" if search_status == 'all')} - = link_to_status 'all' + - %w(open closed all).each do |status| + %li{:class => ("active" if search_status == status)} + = link_to_status status %li{:class => ("active" if action?(:new) || action?(:create))} - = link_to icon(:plus, :black) + t(:new_ticket), auto_new_ticket_path + = link_to icon(:plus, :black) + t(".new", cascade: true), auto_new_ticket_path |