diff options
Diffstat (limited to 'help/app/views/tickets/index.html.haml')
-rw-r--r-- | help/app/views/tickets/index.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
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 |