* admin controllers i18n * remove ja.yml * fix for spec * fix for spec 2 * Apply suggestions from code review Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com> * Update config/locales/controllers/admin/fr.yml Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com> Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
25 lines
878 B
Ruby
25 lines
878 B
Ruby
module Admin
|
|
# This controller is solely responsible for rendering the settings page at
|
|
# /admin/customization/config. The actual updates get handled by the settings
|
|
# controllers in the Admin::Settings namespace.
|
|
class SettingsController < Admin::ApplicationController
|
|
# NOTE: The "show" action uses a lot of partials, this makes it easier to
|
|
# reference them.
|
|
prepend_view_path("app/views/admin/settings")
|
|
|
|
layout "admin"
|
|
|
|
def show
|
|
@logo_allowed_types = LogoUploader::ALLOWED_TYPES
|
|
@logo_max_file_size = LogoUploader::MAX_FILE_SIZE
|
|
@confirmation_text =
|
|
I18n.t("admin.settings_controller.confirmation", username: current_user.username)
|
|
end
|
|
|
|
private
|
|
|
|
# We need to override this method from Admin::ApplicationController since
|
|
# there is no resource to authorize.
|
|
def authorization_resource; end
|
|
end
|
|
end
|