summaryrefslogtreecommitdiff
path: root/engines/support/app/views/tickets/_tabs.html.haml
blob: 7872bb5a158967d5703eb4f7c98f524062e8c045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-#
-# SORT ORDER TABS
-#
- 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)

-#
-# STATUS FILTER TABS
-#
%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