diff options
author | Jakub Mendyk <jakubmendyk.szkola+git@gmail.com> | 2018-08-23 14:17:35 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-23 14:17:35 +0200 |
commit | 6cb3514d64ec24b164484f4eb84363b96746d5d6 (patch) | |
tree | 7de47dff8b187bb5921e7b7a331a9ef487a1cae5 /app/views/admin | |
parent | d1c2c917d9685879d9c5cd203e416a8ef796f1e1 (diff) |
Add ability to change an instance default theme from the administration panel (#7092) (#8381)
* Add default_settings class method to ScopedSettings ScopedSettings was extended to use value of unscoped setting instead of only using defaults set in config/settings.yml for selected settings. This adds possibility for admins to set default values of users' settings, for example default theme (as requested in #7092). * Add ability to change an instance default theme Closes #7092
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/settings/edit.html.haml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/admin/settings/edit.html.haml b/app/views/admin/settings/edit.html.haml index fda6b00f4..b5aa176a2 100644 --- a/app/views/admin/settings/edit.html.haml +++ b/app/views/admin/settings/edit.html.haml @@ -15,6 +15,7 @@ %hr/ .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 :thumbnail, as: :file, wrapper: :with_block_label, label: t('admin.settings.thumbnail.title'), hint: t('admin.settings.thumbnail.desc_html') = f.input :hero, as: :file, wrapper: :with_block_label, label: t('admin.settings.hero.title'), hint: t('admin.settings.hero.desc_html') |