-
- Téléchargements
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
parent
d1c2c917
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/controllers/admin/settings_controller.rb 1 ajout, 0 suppressionapp/controllers/admin/settings_controller.rb
- app/controllers/application_controller.rb 1 ajout, 1 suppressionapp/controllers/application_controller.rb
- app/lib/settings/scoped_settings.rb 13 ajouts, 2 suppressionsapp/lib/settings/scoped_settings.rb
- app/models/form/admin_settings.rb 2 ajouts, 0 suppressionapp/models/form/admin_settings.rb
- app/views/admin/settings/edit.html.haml 1 ajout, 0 suppressionapp/views/admin/settings/edit.html.haml
- spec/controllers/application_controller_spec.rb 33 ajouts, 0 suppressionspec/controllers/application_controller_spec.rb
Veuillez vous inscrire ou vous se connecter pour commenter