From a335b840359b17dd2f2e2e1a8a19adcd36b1283c Mon Sep 17 00:00:00 2001 From: jessib Date: Mon, 3 Dec 2012 16:06:17 -0800 Subject: Ticket sorting functionality. Needs to be refactored, but works. --- help/app/views/tickets/_order-nav.html.haml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'help/app/views/tickets/_order-nav.html.haml') 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') -- cgit v1.2.3