]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up app/views/issues/_edit.html.erb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 03:02:32 +0000 (03:02 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 03:02:32 +0000 (03:02 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19143 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_edit.html.erb

index 35527773de4e69f81c1e65b37facab595b18e94e..cc2f110b7cccf481636013f70642838c5535a47f 100644 (file)
     <%= f.hidden_field :lock_version %>
     <%= hidden_field_tag 'last_journal_id', params[:last_journal_id] || @issue.last_journal_id %>
     <%= submit_tag l(:button_submit) %>
-    <%= link_to l(:button_cancel), issue_path(id: @issue.id), :onclick => params[:action] == 'show' ? "$('#update').hide(); return false;" : '' %>
-
+    <%= link_to(
+          l(:button_cancel), issue_path(id: @issue.id),
+          :onclick => params[:action] == 'show' ? "$('#update').hide(); return false;" : ''
+        ) %>
     <%= hidden_field_tag 'prev_issue_id', @prev_issue_id if @prev_issue_id %>
     <%= hidden_field_tag 'next_issue_id', @next_issue_id if @next_issue_id %>
     <%= hidden_field_tag 'issue_position', @issue_position if @issue_position %>