diff options
author | jessib <jessib@riseup.net> | 2012-10-18 13:42:37 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2012-10-18 13:42:37 -0700 |
commit | 8b9d5235faed6c15e8ef2e2dc76aec7f24d0bb50 (patch) | |
tree | de26dada544adf1158548ef437892759504323d0 /help/app/views/tickets | |
parent | e927ad44c1f3e7e31cd393ce92a78267e4761660 (diff) |
Uses the working authentication code.
Diffstat (limited to 'help/app/views/tickets')
-rw-r--r-- | help/app/views/tickets/index.html.haml | 3 | ||||
-rw-r--r-- | help/app/views/tickets/new.html.haml | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/help/app/views/tickets/index.html.haml b/help/app/views/tickets/index.html.haml index f328ca2..6db2140 100644 --- a/help/app/views/tickets/index.html.haml +++ b/help/app/views/tickets/index.html.haml @@ -1,6 +1,9 @@ +%h2 tickets index (just as space) Create a = link_to "new ticket", new_ticket_path += # below shouldn't be unless logged in %h2 Tickets += # want to have selection option to see tickets, that are open, closed or all - @tickets.each do |ticket| %p = link_to ticket.title, ticket diff --git a/help/app/views/tickets/new.html.haml b/help/app/views/tickets/new.html.haml index 8c660c9..537b97f 100644 --- a/help/app/views/tickets/new.html.haml +++ b/help/app/views/tickets/new.html.haml @@ -3,7 +3,7 @@ = #@ticket.errors.messages = f.input :title = #f.input :email #if there is no current_user - = f.input :email if !User.current_test #hmm--might authenticated users want to submit an alternate email? + = f.input :email if !current_user #hmm--might authenticated users want to submit an alternate email? = f.simple_fields_for :comments do |c| = c.input :body, :label => 'Comment', :as => :text |