summaryrefslogtreecommitdiff
path: root/help/app/views/tickets/_ticket_data.html.haml
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-01-24 09:51:50 -0800
committerjessib <jessib@riseup.net>2013-01-24 09:51:50 -0800
commit75442ad26f3d30519f747bc98bc83cdc76aff750 (patch)
tree7c5dfc371c7d596a3a3676bad6b24c4d6c5ab43a /help/app/views/tickets/_ticket_data.html.haml
parented1caa740f0e58cfd5f2d908946461154db68174 (diff)
parent4057fba83719687284a4fc5542d1d0cb6f1f86e9 (diff)
Merge pull request #21 from leapcode/feature/misc_cleanup
Feature/misc cleanup
Diffstat (limited to 'help/app/views/tickets/_ticket_data.html.haml')
-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.