diff options
Diffstat (limited to 'help/app/views')
-rw-r--r-- | help/app/views/tickets/_ticket_data.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/help/app/views/tickets/_ticket_data.html.haml b/help/app/views/tickets/_ticket_data.html.haml index d68d3e9..6a1a896 100644 --- a/help/app/views/tickets/_ticket_data.html.haml +++ b/help/app/views/tickets/_ticket_data.html.haml @@ -2,7 +2,7 @@ %b Created by: - if @ticket.created_by_user - = link_to @ticket.created_by_user.login, edit_user_path(@ticket.created_by_user) #todo: won't want edit path + = link_to @ticket.created_by_user.login, user_path(@ticket.created_by_user) - else Unauthenticated ticket creator - if @ticket.regarding_user @@ -10,7 +10,7 @@ Regarding user: - if admin? - if @ticket.regarding_user_actual_user - = link_to @ticket.regarding_user_actual_user.login, edit_user_path(@ticket.regarding_user_actual_user) #todo: won't want edit path + = link_to @ticket.regarding_user_actual_user.login, user_path(@ticket.regarding_user_actual_user) - else = @ticket.regarding_user + ' (no such user)' - else # a non-admin is viewing the ticket, so they shouldn't see confirmation of whether the regarding_user exists or not. |