mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Use ENV.fetch
in views, fixes rubocop haml-lint issue (#27527)
This commit is contained in:
parent
4fdc548fa5
commit
e923bb9ec9
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
- if self_destruct?
|
- if self_destruct?
|
||||||
.flash-message.warning
|
.flash-message.warning
|
||||||
= t('auth.status.self_destruct', domain: ENV['LOCAL_DOMAIN'])
|
= t('auth.status.self_destruct', domain: ENV.fetch('LOCAL_DOMAIN'))
|
||||||
- else
|
- else
|
||||||
= render partial: 'status', locals: { user: @user, strikes: @strikes }
|
= render partial: 'status', locals: { user: @user, strikes: @strikes }
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
.simple_form
|
.simple_form
|
||||||
%h1.title= t('self_destruct.title')
|
%h1.title= t('self_destruct.title')
|
||||||
%p.lead= t('self_destruct.lead_html', domain: ENV['LOCAL_DOMAIN'])
|
%p.lead= t('self_destruct.lead_html', domain: ENV.fetch('LOCAL_DOMAIN'))
|
||||||
|
|
||||||
.form-footer
|
.form-footer
|
||||||
%ul.no-list
|
%ul.no-list
|
||||||
|
Loading…
Reference in New Issue
Block a user