summaryrefslogtreecommitdiff
path: root/help/app/views/tickets
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-01-22 11:38:05 -0800
committerjessib <jessib@leap.se>2013-01-22 11:38:05 -0800
commit9fa4afd9b3fa1210dd467656e5a014ab99c136e1 (patch)
tree229249956758376dca07342bd9d77d125ec06b14 /help/app/views/tickets
parent7cdb14e2a6584eb838945b00fe2840b3e8c211e3 (diff)
Link to users show page rather than edit, now that we have a show view for users.
Diffstat (limited to 'help/app/views/tickets')
-rw-r--r--help/app/views/tickets/_ticket_data.html.haml4
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.