Quick best practice cleanup of views/helpers (#1546)
* Remove trailing whitespace * Use query methods instead of explicit .blank? checks
This commit is contained in:
@ -21,9 +21,9 @@
|
||||
%i.fa.fa-check
|
||||
%td= distance_of_time_in_words(Time.now, subscription.expires_at)
|
||||
%td
|
||||
- if subscription.last_successful_delivery_at.nil?
|
||||
%i.fa.fa-times
|
||||
- else
|
||||
- if subscription.last_successful_delivery_at?
|
||||
= l subscription.last_successful_delivery_at
|
||||
- else
|
||||
%i.fa.fa-times
|
||||
|
||||
= paginate @subscriptions
|
||||
|
@ -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/
|
||||
|
Reference in New Issue
Block a user