Rename settings page
This commit is contained in:
parent
3f1c4f17a7
commit
f1ef257c97
7
app/controllers/account_controller.rb
Normal file
7
app/controllers/account_controller.rb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class AccountController < ApplicationController
|
||||||
|
before_action :require_user_signed_in
|
||||||
|
|
||||||
|
def index
|
||||||
|
@current_section = :account
|
||||||
|
end
|
||||||
|
end
|
@ -1,7 +0,0 @@
|
|||||||
class SecurityController < ApplicationController
|
|
||||||
before_action :require_user_signed_in
|
|
||||||
|
|
||||||
def index
|
|
||||||
@current_section = :security
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,4 +1,4 @@
|
|||||||
class Settings::SecurityController < SettingsController
|
class Settings::AccountController < SettingsController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
end
|
end
|
@ -3,8 +3,8 @@
|
|||||||
active: current_page?(settings_profile_path)
|
active: current_page?(settings_profile_path)
|
||||||
) %>
|
) %>
|
||||||
<%= render SidenavLinkComponent.new(
|
<%= render SidenavLinkComponent.new(
|
||||||
name: "Security", path: settings_security_path, icon: "key",
|
name: "Account", path: settings_account_path, icon: "key",
|
||||||
active: current_page?(settings_security_path)
|
active: current_page?(settings_account_path)
|
||||||
) %>
|
) %>
|
||||||
<%= render SidenavLinkComponent.new(
|
<%= render SidenavLinkComponent.new(
|
||||||
name: "Security", path: "#", icon: "shield", disabled: true
|
name: "Security", path: "#", icon: "shield", disabled: true
|
||||||
|
@ -12,8 +12,8 @@ Rails.application.routes.draw do
|
|||||||
|
|
||||||
namespace :settings do
|
namespace :settings do
|
||||||
get 'profile', to: 'profile#index'
|
get 'profile', to: 'profile#index'
|
||||||
get 'security', to: 'security#index'
|
get 'account', to: 'account#index'
|
||||||
post 'reset_password', to: 'security#reset_password'
|
post 'reset_password', to: 'account#reset_password'
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :contributions do
|
namespace :contributions do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user