diff options
author | azul <azul@leap.se> | 2014-07-10 11:06:20 +0200 |
---|---|---|
committer | azul <azul@leap.se> | 2014-07-10 11:06:20 +0200 |
commit | c9dd5a342f902b27aec73af24776025a03feda48 (patch) | |
tree | 83472ae6cb3bbab1479e585e90de1fad9f45382b /engines/support/app/views/tickets/_tabs.html.haml | |
parent | dc740e4311101bf7297996788b25a99edafbe759 (diff) | |
parent | 7b368ac4825686458be38460d8a77f4e9e0139ef (diff) |
Merge pull request #174 from azul/bugfix/admin-navigates-all-tickets
Admin navigates all tickets - fixes #5879
Diffstat (limited to 'engines/support/app/views/tickets/_tabs.html.haml')
-rw-r--r-- | engines/support/app/views/tickets/_tabs.html.haml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/support/app/views/tickets/_tabs.html.haml b/engines/support/app/views/tickets/_tabs.html.haml index 7872bb5..a7347e1 100644 --- a/engines/support/app/views/tickets/_tabs.html.haml +++ b/engines/support/app/views/tickets/_tabs.html.haml @@ -4,8 +4,7 @@ - unless action?(:new) or action?(:create) %ul.nav.nav-pills.pull-right.slim - %w(created updated).each do |order| - %li{:class=> ("active" if search_order.start_with? order)} - = link_to_order(order) + = link_to_order(order) -# -# STATUS FILTER TABS @@ -13,7 +12,7 @@ %ul.nav.nav-tabs - if logged_in? - %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", cascade: true), auto_new_ticket_path + = link_to_status status + = link_to_navigation ".new", auto_new_ticket_path, + active: action?(:new) || action?(:create), + icon: :plus |