2024-11-18 09:49:04 +00:00
|
|
|
from frontend.classes import NavSection, NavItem, 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")
|
|
|
|
|
|
|
|
dreams_items = {
|
|
|
|
"dreams_dream_list": NavItem("Dream List", reverse_lazy("dreams:dream_list")),
|
|
|
|
"dreams_theme_list": NavItem("Themes", reverse_lazy("dreams:theme_list")),
|
|
|
|
"dreams_notification_list": NavItem("Notifications", reverse_lazy("dreams:notification_list"))
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, item in dreams_items.items():
|
|
|
|
dreams_section.add_item(item)
|
|
|
|
|
2024-11-18 09:49:04 +00:00
|
|
|
NAV_SECTIONS = [dreams_section]
|
|
|
|
|
|
|
|
# Dashboard sections
|
|
|
|
|
|
|
|
dreams_section = DashboardSection("Dreams", "dreams/dashboard_section.html")
|
|
|
|
|
|
|
|
DASHBOARD_SECTIONS = [dreams_section]
|