mirror of https://github.com/mastodon/mastodon
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 viewpull/1769/head^2
parent
d90b1650d8
commit
84b5fae8e3
@ -1,4 +1,4 @@
|
||||
- content_for :page_title do
|
||||
= t('settings.two_factor_auth')
|
||||
|
||||
= render partial: 'recovery_codes', object: @codes
|
||||
= render 'recovery_codes', recovery_codes: @codes
|
||||
|
@ -1,4 +1,4 @@
|
||||
- content_for :page_title do
|
||||
= t('settings.two_factor_auth')
|
||||
|
||||
= render partial: 'recovery_codes', object: @codes
|
||||
= render 'recovery_codes', recovery_codes: @codes
|
||||
|
@ -1,2 +1,2 @@
|
||||
.activity-stream.activity-stream-headless
|
||||
= render partial: @type, locals: { @type.to_sym => @stream_entry.activity, centered: true }
|
||||
= render @type, @type.to_sym => @stream_entry.activity, centered: true
|
||||
|
Loading…
Reference in New Issue