diff options
Diffstat (limited to 'help')
| -rw-r--r-- | help/app/views/tickets/_ticket_data.html.haml | 7 | 
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 | 
