From f4bc9620a9701db17cb8f651643f65c984e65c27 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 28 Jan 2017 03:56:10 +0100 Subject: Update settings to re-use admin layout, one big navigation tree, improve settings forms --- app/controllers/settings/preferences_controller.rb | 2 +- app/controllers/settings/profiles_controller.rb | 2 +- app/controllers/settings/two_factor_auths_controller.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers/settings') diff --git a/app/controllers/settings/preferences_controller.rb b/app/controllers/settings/preferences_controller.rb index f273b5f21..5ad825675 100644 --- a/app/controllers/settings/preferences_controller.rb +++ b/app/controllers/settings/preferences_controller.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Settings::PreferencesController < ApplicationController - layout 'auth' + layout 'admin' before_action :authenticate_user! diff --git a/app/controllers/settings/profiles_controller.rb b/app/controllers/settings/profiles_controller.rb index 4be549958..2b74b4e94 100644 --- a/app/controllers/settings/profiles_controller.rb +++ b/app/controllers/settings/profiles_controller.rb @@ -3,7 +3,7 @@ class Settings::ProfilesController < ApplicationController include ObfuscateFilename - layout 'auth' + layout 'admin' before_action :authenticate_user! before_action :set_account diff --git a/app/controllers/settings/two_factor_auths_controller.rb b/app/controllers/settings/two_factor_auths_controller.rb index 66a82aab7..f34295cb9 100644 --- a/app/controllers/settings/two_factor_auths_controller.rb +++ b/app/controllers/settings/two_factor_auths_controller.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Settings::TwoFactorAuthsController < ApplicationController - layout 'auth' + layout 'admin' before_action :authenticate_user! -- cgit