summaryrefslogtreecommitdiff
path: root/help/app/views
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2012-12-03 16:06:17 -0800
committerjessib <jessib@leap.se>2012-12-03 16:06:17 -0800
commita335b840359b17dd2f2e2e1a8a19adcd36b1283c (patch)
tree61e82567a166f8dcd20c85042973663193e0c434 /help/app/views
parent4bbf03761852ea5dfcfd1384b98d2606842e95ad (diff)
Ticket sorting functionality. Needs to be refactored, but works.
Diffstat (limited to 'help/app/views')
-rw-r--r--help/app/views/tickets/_admin-nav.html.haml4
-rw-r--r--help/app/views/tickets/_order-nav.html.haml10
2 files changed, 6 insertions, 8 deletions
diff --git a/help/app/views/tickets/_admin-nav.html.haml b/help/app/views/tickets/_admin-nav.html.haml
index 055485d..0e45c40 100644
--- a/help/app/views/tickets/_admin-nav.html.haml
+++ b/help/app/views/tickets/_admin-nav.html.haml
@@ -1,5 +1,5 @@
%ul.nav.nav-pills.nav-stacked
%li{:class => ("active" if admin == 'mine')}
- = link_to 'tickets i admin', {:admin_status => 'mine', :open_status => status}
+ = link_to 'tickets i admin', {:admin_status => 'mine', :open_status => status, :sort_order => order}
%li{:class => ("active" if admin == 'all')}
- = link_to 'all tickets', {:admin_status => 'all', :open_status => status}
+ = link_to 'all tickets', {:admin_status => 'all', :open_status => status, :sort_order => order}
diff --git a/help/app/views/tickets/_order-nav.html.haml b/help/app/views/tickets/_order-nav.html.haml
index 176acdc..9e8bcee 100644
--- a/help/app/views/tickets/_order-nav.html.haml
+++ b/help/app/views/tickets/_order-nav.html.haml
@@ -1,7 +1,5 @@
%ul.nav.nav-pills.pull-right
- %li
- = link_to 'created at'
- %li{:class=> ("active" if true)}
- = link_to do
- %i.icon-arrow-up
- updated at
+ %li{:class=> ("active" if order.start_with? 'created_at' )}
+ = link_to_order('created')
+ %li{:class=> ("active" if order.start_with? 'updated_at' )}
+ = link_to_order('updated')