Quick best practice cleanup of views/helpers (#1546)
* Remove trailing whitespace * Use query methods instead of explicit .blank? checks
This commit is contained in:
parent
aa90798386
commit
c44a700252
10 changed files with 16 additions and 19 deletions
|
@ -12,10 +12,7 @@
|
|||
%p
|
||||
%strong= t('reports.comment.label')
|
||||
\:
|
||||
- if @report.comment.blank?
|
||||
= t('reports.comment.none')
|
||||
- else
|
||||
= @report.comment
|
||||
= @report.comment.presence || t('reports.comment.none')
|
||||
|
||||
- unless @statuses.empty?
|
||||
%hr/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue