Refactor admin settings routes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This is much cleaner, and semantically more correct.
This commit is contained in:
2024-01-15 19:41:30 +03:00
parent 4fa4ae6b54
commit 51f4556ede
9 changed files with 56 additions and 45 deletions

View File

@@ -4,9 +4,9 @@
) %>
<%= render SidenavLinkComponent.new(
name: "Services", path: admin_settings_services_path, icon: "grid",
active: current_page?(admin_settings_services_path)
active: controller_name == "services"
) %>
<% if current_page?(admin_settings_services_path) %>
<% if controller_name == "services" %>
<%= render partial: "shared/admin_sidenav_settings_services" %>
<% end %>
<%= render SidenavLinkComponent.new(