Refactor settings routes and menu
Use sub controllers/routes for the sections
This commit is contained in:
@@ -1 +0,0 @@
|
||||
<h2>Settings</h2>
|
||||
9
app/views/settings/profile/index.html.erb
Normal file
9
app/views/settings/profile/index.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<%= render HeaderComponent.new(title: "Settings") %>
|
||||
|
||||
<%= render MainWithSidenavComponent.new(sidenav_partial: 'shared/sidenav_settings') do %>
|
||||
<section>
|
||||
<h3>Profile</h3>
|
||||
<p class="mb-12">
|
||||
</p>
|
||||
</section>
|
||||
<% end %>
|
||||
@@ -6,5 +6,5 @@
|
||||
class: main_nav_class(@current_section, :invitations) %>
|
||||
<%= link_to "Wallet", wallet_path,
|
||||
class: main_nav_class(@current_section, :wallet) %>
|
||||
<%= link_to "Settings", security_path,
|
||||
class: main_nav_class(@current_section, :security) %>
|
||||
<%= link_to "Settings", settings_profile_path,
|
||||
class: main_nav_class(@current_section, :settings) %>
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<%= render SidenavLinkComponent.new(
|
||||
name: "Account", path: "#", icon: "user", disabled: true
|
||||
name: "Profile", path: settings_profile_path, icon: "user",
|
||||
active: current_page?(settings_profile_path)
|
||||
) %>
|
||||
<%= render SidenavLinkComponent.new(
|
||||
name: "Password", path: security_path, icon: "key",
|
||||
active: current_page?(security_path)
|
||||
name: "Security", path: settings_security_path, icon: "key",
|
||||
active: current_page?(settings_security_path)
|
||||
) %>
|
||||
<%= render SidenavLinkComponent.new(
|
||||
name: "Security", path: "#", icon: "shield", disabled: true
|
||||
|
||||
Reference in New Issue
Block a user