Skip to content

Commit

Permalink
Add label for admin theme selector (mastodon#11121)
Browse files Browse the repository at this point in the history
* Add simple_form default for admin theme selector

* Revert "Add simple_form default for admin theme selector"

This reverts commit 0b736f7.

* Add setting_theme label to admin theme selector
  • Loading branch information
alixrossi authored and Gargron committed Jun 19, 2019
1 parent ecff88b commit 7849b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/settings/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

.fields-row
.fields-row__column.fields-row__column-6.fields-group
= f.input :theme, collection: Themes.instance.names, label_method: lambda { |theme| I18n.t("themes.#{theme}", default: theme) }, wrapper: :with_label, include_blank: false
= f.input :theme, collection: Themes.instance.names, label: t('simple_form.labels.defaults.setting_theme'), label_method: lambda { |theme| I18n.t("themes.#{theme}", default: theme) }, wrapper: :with_label, include_blank: false
.fields-row__column.fields-row__column-6.fields-group
= f.input :registrations_mode, collection: %w(open approved none), wrapper: :with_label, label: t('admin.settings.registrations_mode.title'), include_blank: false, label_method: lambda { |mode| I18n.t("admin.settings.registrations_mode.modes.#{mode}") }

Expand Down

0 comments on commit 7849b51

Please sign in to comment.