summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--help/app/views/tickets/_edit_form.html.haml30
1 files changed, 17 insertions, 13 deletions
diff --git a/help/app/views/tickets/_edit_form.html.haml b/help/app/views/tickets/_edit_form.html.haml
index 9c981a3..9846a43 100644
--- a/help/app/views/tickets/_edit_form.html.haml
+++ b/help/app/views/tickets/_edit_form.html.haml
@@ -1,17 +1,21 @@
-- # created by user link
-- if @ticket.created_by_user
- - created_by = link_to(@ticket.created_by_user.login, user_overview_path(@ticket.created_by_user))
-- else
- - created_by = t(:anonymous)
+:ruby
+ # created by user link
+ if @ticket.created_by_user
+ created_by = link_to(@ticket.created_by_user.login, user_overview_path(@ticket.created_by_user))
+ else
+ created_by = t(:anonymous)
+ end
-- # regarding user link
-- if admin?
- - if @ticket.regarding_user_actual_user
- - regarding_user_link = link_to @ticket.regarding_user_actual_user.login, user_overview_path(@ticket.regarding_user_actual_user)
- - else
- - regarding_user_link = "(#{t(:unknown)})"
-- else
- - regarding_user_link = ''
+ # regarding user link
+ if admin?
+ if @ticket.regarding_user_actual_user
+ regarding_user_link = link_to @ticket.regarding_user_actual_user.login, user_overview_path(@ticket.regarding_user_actual_user)
+ else
+ regarding_user_link = "(#{t(:unknown)})"
+ end
+ else
+ regarding_user_link = ''
+ end
= form_for @ticket do |f|
= hidden_ticket_fields