diff options
author | jessib <jessib@leap.se> | 2012-12-24 16:22:39 -0800 |
---|---|---|
committer | jessib <jessib@leap.se> | 2012-12-24 16:22:39 -0800 |
commit | 313000fec18d56fba8f720ac32ae3ca8a92e4e36 (patch) | |
tree | b9494f9ac8eb943221afa7d9b325d928ed9320d9 /help/app/views | |
parent | 9a23a5d63b2b5bcb1994137a5de9f8ebd88142f1 (diff) |
Rough functionality for unauthenticated tickets.
Diffstat (limited to 'help/app/views')
-rw-r--r-- | help/app/views/tickets/_ticket_data.html.haml | 7 | ||||
-rw-r--r-- | help/app/views/tickets/new.html.haml | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/help/app/views/tickets/_ticket_data.html.haml b/help/app/views/tickets/_ticket_data.html.haml index 3d301be..80c0d74 100644 --- a/help/app/views/tickets/_ticket_data.html.haml +++ b/help/app/views/tickets/_ticket_data.html.haml @@ -5,6 +5,13 @@ = User.find(@ticket.created_by).login - else Unauthenticated ticket creator + - if @ticket.regarding_user + %b + Regarding user: + - if regarding_user = User.find_by_login(@ticket.regarding_user) + = link_to @ticket.regarding_user, edit_user_path(regarding_user) + - else + = @ticket.regarding_user + '(no such user)' - if @ticket.email %b email: diff --git a/help/app/views/tickets/new.html.haml b/help/app/views/tickets/new.html.haml index 750b990..255be65 100644 --- a/help/app/views/tickets/new.html.haml +++ b/help/app/views/tickets/new.html.haml @@ -3,6 +3,7 @@ = simple_form_for(@ticket, :html => {:novalidate => true}) do |f| #turn off html5 validations to test = f.input :title = f.input :email if !current_user #hmm--might authenticated users want to submit an alternate email? + = f.input :regarding_user if !current_user = render :partial => 'new_comment', :locals => {:f => f} = # regarding_user if not logged in = # email if not logged in |