Simplify renders in views (#2084)
* Simplify render in mailer views * Simplify render in about/more view * Simplify render in accounts follow views * Simplify render in recovery code views * Simplify render in stream entry embed * Simplify render in stream entries status partial * Simplify render in authorize follow new view
This commit is contained in:
parent
d90b1650d8
commit
84b5fae8e3
12 changed files with 12 additions and 12 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
.accounts-grid
|
||||
- if @followers.empty?
|
||||
= render partial: 'nothing_here'
|
||||
= render 'nothing_here'
|
||||
- else
|
||||
= render partial: 'grid_card', collection: @followers, as: :account, cached: true
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
.accounts-grid
|
||||
- if @following.empty?
|
||||
= render partial: 'nothing_here'
|
||||
= render 'nothing_here'
|
||||
- else
|
||||
= render partial: 'grid_card', collection: @following, as: :account, cached: true
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
- if @statuses.empty?
|
||||
.accounts-grid
|
||||
= render partial: 'nothing_here'
|
||||
= render 'nothing_here'
|
||||
- else
|
||||
.activity-stream
|
||||
= render partial: 'stream_entries/status', collection: @statuses, as: :status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue