diff options
author | elijah <elijah@riseup.net> | 2013-07-05 15:14:50 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-05 15:14:50 -0700 |
commit | b2124020f123bf7a44b21555e6aefb5699bdcc21 (patch) | |
tree | 574b2bc9fa91f685b873b703d3dd994b32d0be5c /help | |
parent | cc0ffb5511ee233574495d683178f71885a36b7e (diff) |
use :ruby for ruby inside tickets/edit_form partial.
Diffstat (limited to 'help')
-rw-r--r-- | help/app/views/tickets/_edit_form.html.haml | 30 |
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 |