summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2012-12-24 16:34:49 -0800
committerjessib <jessib@leap.se>2012-12-24 16:34:49 -0800
commit4f35e7555feae15fb86eb81a38d4ff39b97ab576 (patch)
tree5facbb71c81b8f61e746dd605534b92b302a27e4 /help
parent313000fec18d56fba8f720ac32ae3ca8a92e4e36 (diff)
Link to edit page (as show doesn't now exist, and not clear if we will want it) of user who created ticket.
Diffstat (limited to 'help')
-rw-r--r--help/app/views/tickets/_ticket_data.html.haml7
1 files changed, 5 insertions, 2 deletions
diff --git a/help/app/views/tickets/_ticket_data.html.haml b/help/app/views/tickets/_ticket_data.html.haml
index 80c0d74..fd5d3bf 100644
--- a/help/app/views/tickets/_ticket_data.html.haml
+++ b/help/app/views/tickets/_ticket_data.html.haml
@@ -1,8 +1,11 @@
.spam12
%b
Created by:
- - if User.find(@ticket.created_by)
- = User.find(@ticket.created_by).login
+ - if creator = User.find(@ticket.created_by)
+ - if !creator.is_admin?
+ = link_to creator.login, edit_user_path(creator)
+ - else
+ = creator.login
- else
Unauthenticated ticket creator
- if @ticket.regarding_user