diff options
author | elijah <elijah@riseup.net> | 2013-07-03 11:11:10 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-03 11:11:10 -0700 |
commit | 9f7e6ed3d44fb460cd0852a1f2335ef381f5dc1b (patch) | |
tree | c248ce9aa7b0cd9f81180e69573691502a4c19ed /help/app/views/tickets/_status-nav.html.haml | |
parent | 743da86885379c240cb6946b57b9df72cc508c8e (diff) |
better ticket view navigation: tickets are now either global in scope (for admins) or stay as a nested resource for a particular user (for normal users and when you visit the tickets list of a particular user).
Diffstat (limited to 'help/app/views/tickets/_status-nav.html.haml')
-rw-r--r-- | help/app/views/tickets/_status-nav.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/help/app/views/tickets/_status-nav.html.haml b/help/app/views/tickets/_status-nav.html.haml index c8279ed..8e51497 100644 --- a/help/app/views/tickets/_status-nav.html.haml +++ b/help/app/views/tickets/_status-nav.html.haml @@ -1,10 +1,10 @@ %ul.nav.nav-tabs - if logged_in? - %li{:class => ("active" if status == 'open')} + %li{:class => ("active" if search_status == 'open')} = link_to_status 'open' - %li{:class => ("active" if status == 'closed')} + %li{:class => ("active" if search_status == 'closed')} = link_to_status 'closed' - %li{:class => ("active" if status == 'all')} + %li{:class => ("active" if search_status == 'all')} = link_to_status 'all' %li{:class => ("active" if action?(:new))} - = link_to icon(:plus, :black) + t(:new_ticket), new_ticket_path + = link_to icon(:plus, :black) + t(:new_ticket), auto_new_ticket_path |