akkounts/app/views/shared/_sidenav_settings.html.erb
Râu Cao 96cf534d0a
Refactor settings routes and menu
Use sub controllers/routes for the sections
2022-12-21 18:11:13 +07:00

12 lines
408 B
Plaintext

<%= render SidenavLinkComponent.new(
name: "Profile", path: settings_profile_path, icon: "user",
active: current_page?(settings_profile_path)
) %>
<%= render SidenavLinkComponent.new(
name: "Security", path: settings_security_path, icon: "key",
active: current_page?(settings_security_path)
) %>
<%= render SidenavLinkComponent.new(
name: "Security", path: "#", icon: "shield", disabled: true
) %>