summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-07-05 15:14:50 -0700
committerelijah <elijah@riseup.net>2013-07-05 15:14:50 -0700
commitb2124020f123bf7a44b21555e6aefb5699bdcc21 (patch)
tree574b2bc9fa91f685b873b703d3dd994b32d0be5c /help
parentcc0ffb5511ee233574495d683178f71885a36b7e (diff)
use :ruby for ruby inside tickets/edit_form partial.
Diffstat (limited to 'help')
-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