From 90af08d51eb24202bd703bfdfa1d2811fa26a5e0 Mon Sep 17 00:00:00 2001 From: jessib Date: Fri, 9 Nov 2012 13:39:59 -0800 Subject: Various very small tweaks: comments about main div display in firefox, give info for when creating unauthenticated tickets, redirecting to index when closing a ticket, fix default select for ticket filtering. --- help/app/views/tickets/index.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'help/app/views/tickets/index.html.haml') diff --git a/help/app/views/tickets/index.html.haml b/help/app/views/tickets/index.html.haml index 8fe4055..5e35b12 100644 --- a/help/app/views/tickets/index.html.haml +++ b/help/app/views/tickets/index.html.haml @@ -3,12 +3,12 @@ Create a = link_to "new ticket", new_ticket_path = # below shouldn't be unless logged in %h2 Tickets -= form_tag (tickets_path, :method => :get) do # want to redo as ajax, and make sure it displays the selected option - - options = ["open", "closed", "all"] += form_tag(tickets_path, :method => :get) do # want to redo as ajax, and make sure it displays the selected option + - options = ["all", "open", "closed"] - if admin? - options << "open tickets I admin" # obviously not what we will want - options << "all tickets I admin" # obviously not what we will want - = select_tag :status, options_for_select(options) # TODO + = select_tag :status, options_for_select(options, :selected => params[:status]|| "all") = submit_tag "filter" - @tickets.each do |ticket| %p -- cgit v1.2.3