akkounts/app/views/shared/_sidenav_settings.html.erb
Râu Cao 49dd7bd96d
Refactor settings routes and menu
Use sub controllers/routes for the sections
2023-01-10 14:09:11 +08: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
) %>