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
|
@ -13,11 +13,11 @@
|
|||
%span.p-nickname= acct(status.account)
|
||||
|
||||
.status__content.e-content.p-name.emojify<
|
||||
- unless status.spoiler_text.blank?
|
||||
- if status.spoiler_text?
|
||||
%p{ style: 'margin-bottom: 0' }<
|
||||
%span>= "#{status.spoiler_text} "
|
||||
%a.status__content__spoiler-link{ href: '#' }= t('statuses.show_more')
|
||||
%div{ style: "display: #{status.spoiler_text.blank? ? 'block' : 'none'}; direction: #{rtl?(status.content) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status)
|
||||
%div{ style: "display: #{status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl?(status.content) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status)
|
||||
|
||||
- unless status.media_attachments.empty?
|
||||
.status__attachments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue