diff options
author | elijah <elijah@riseup.net> | 2013-06-23 22:14:45 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-04 04:04:54 -0700 |
commit | d121373b7c21a29e47708e8b67aeb964202e52c5 (patch) | |
tree | 92ea7dda1a3c7173785f19f0844cd637984f2924 /help/app/views/tickets/_status-nav.html.haml | |
parent | 38544a07de7988eee91343c1491dae1e08ce5034 (diff) |
fix several issues with tickets: js error, when to redirect, navigation, localization.
Diffstat (limited to 'help/app/views/tickets/_status-nav.html.haml')
-rw-r--r-- | help/app/views/tickets/_status-nav.html.haml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/help/app/views/tickets/_status-nav.html.haml b/help/app/views/tickets/_status-nav.html.haml index e1dca84..c8279ed 100644 --- a/help/app/views/tickets/_status-nav.html.haml +++ b/help/app/views/tickets/_status-nav.html.haml @@ -1,9 +1,10 @@ %ul.nav.nav-tabs - %li{:class => ("active" if status == 'open')} - = link_to_status 'open' - %li{:class => ("active" if status == 'closed')} - = link_to_status 'closed' - %li{:class => ("active" if status == 'all')} - = link_to_status 'all' + - if logged_in? + %li{:class => ("active" if status == 'open')} + = link_to_status 'open' + %li{:class => ("active" if status == 'closed')} + = link_to_status 'closed' + %li{:class => ("active" if status == 'all')} + = link_to_status 'all' %li{:class => ("active" if action?(:new))} = link_to icon(:plus, :black) + t(:new_ticket), new_ticket_path |