From be479d2c55d502c6e4303700b68e0a619f646834 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 27 Nov 2012 10:01:07 +0100 Subject: bunch of refactoring for the ticket index * using different partials for different parts of the view * using render @tickets.all to iterate over the tickets. #all is necessary because of CouchRest Model * using helpers for easier querying for the open_status and admin_status params * using helper for avoiding duplication when linking to status --- help/app/views/tickets/_order-nav.html.haml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 help/app/views/tickets/_order-nav.html.haml (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 new file mode 100644 index 0000000..176acdc --- /dev/null +++ b/help/app/views/tickets/_order-nav.html.haml @@ -0,0 +1,7 @@ +%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 -- cgit v1.2.3