summaryrefslogtreecommitdiff
path: root/engines/support/app/views
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-05 13:10:50 +0200
committerAzul <azul@leap.se>2014-07-09 13:26:36 +0200
commit9d83092405745f6d1b07a57fd8d2aa8e9bffd9fa (patch)
treee8ad9a5044131ce4bdeb52bd52e990d199c6d066 /engines/support/app/views
parentc8fc45c21d72837d5a6bd41ffca18b3ac52a305f (diff)
minor: cleanup some links
only submit the params that differ from the defaults
Diffstat (limited to 'engines/support/app/views')
-rw-r--r--engines/support/app/views/tickets/_tabs.html.haml11
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