summaryrefslogtreecommitdiff
path: root/help/app/views/tickets
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-11-09 13:39:59 -0800
committerjessib <jessib@riseup.net>2012-11-09 13:39:59 -0800
commit90af08d51eb24202bd703bfdfa1d2811fa26a5e0 (patch)
treeaa7346d9d14ce26478c7ef3118685e6c24091fd1 /help/app/views/tickets
parent215a3a0abce42a1f6d303302763c1d4081cc4685 (diff)
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.
Diffstat (limited to 'help/app/views/tickets')
-rw-r--r--help/app/views/tickets/index.html.haml6
-rw-r--r--help/app/views/tickets/show.html.haml4
2 files changed, 5 insertions, 5 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
diff --git a/help/app/views/tickets/show.html.haml b/help/app/views/tickets/show.html.haml
index 77d168a..9b12f34 100644
--- a/help/app/views/tickets/show.html.haml
+++ b/help/app/views/tickets/show.html.haml
@@ -1,5 +1,5 @@
-%h1 tickets show (just as space)
-%h1 tickets show (just as space)
+%h1 tickets show (just as space for firefox)
+%h1 tickets show (just as space for firefox)
%h2= @ticket.title
- if @ticket.email
email: