2024-11-19 05:56:52 +00:00
|
|
|
from frontend.classes import NavSection, NavItem, NavCollapse, DashboardSection
|
2021-10-24 15:45:23 +00:00
|
|
|
|
|
|
|
from django.urls import reverse_lazy
|
|
|
|
|
2024-11-18 09:49:04 +00:00
|
|
|
# Sidebar navigation items
|
|
|
|
|
2021-10-24 15:45:23 +00:00
|
|
|
dreams_section = NavSection("Dreams")
|
|
|
|
|
2024-11-19 05:56:52 +00:00
|
|
|
dreams_settings_collapse = NavCollapse("Settings", icon="fas fa-fw fa-cog")
|
2021-10-24 15:45:23 +00:00
|
|
|
|
2024-11-19 05:56:52 +00:00
|
|
|
dream_list = NavItem("Dream List", reverse_lazy("dreams:dream_list"))
|
|
|
|
|
|
|
|
dreams_settings = [
|
|
|
|
NavItem("Themes", reverse_lazy("dreams:theme_list")),
|
|
|
|
NavItem("Notifications", reverse_lazy("dreams:notification_list")),
|
|
|
|
]
|
|
|
|
|
|
|
|
for item in dreams_settings:
|
|
|
|
dreams_settings_collapse.add_item(item)
|
|
|
|
|
|
|
|
dreams_section.add_item(dream_list)
|
|
|
|
dreams_section.add_item(dreams_settings_collapse)
|
2021-10-24 15:45:23 +00:00
|
|
|
|
2024-11-18 09:49:04 +00:00
|
|
|
NAV_SECTIONS = [dreams_section]
|
|
|
|
|
|
|
|
# Dashboard sections
|
|
|
|
|
|
|
|
dreams_section = DashboardSection("Dreams", "dreams/dashboard_section.html")
|
|
|
|
|
2024-11-19 05:56:52 +00:00
|
|
|
DASHBOARD_SECTIONS = [dreams_section]
|