2024-11-18 09:49:04 +00:00
|
|
|
from frontend.classes import NavSection, NavItem, DashboardSection
|
2021-10-24 15:35:52 +00:00
|
|
|
|
|
|
|
from django.urls import reverse_lazy
|
|
|
|
|
2024-11-18 09:49:04 +00:00
|
|
|
# Sidebar navigation items
|
|
|
|
|
2021-10-24 15:35:52 +00:00
|
|
|
mood_section = NavSection("Mood")
|
|
|
|
|
|
|
|
mood_items = {
|
|
|
|
"mood_status_list": NavItem("Status List", reverse_lazy("mood:status_list")),
|
|
|
|
"mood_activity_list": NavItem("Activities", reverse_lazy("mood:activity_list")),
|
|
|
|
"mood_mood_list": NavItem("Moods", reverse_lazy("mood:mood_list")),
|
2024-11-18 09:49:04 +00:00
|
|
|
"mood_notification_list": NavItem(
|
|
|
|
"Notifications", reverse_lazy("mood:notification_list")
|
|
|
|
),
|
|
|
|
"mood_statistics": NavItem("Statistics", reverse_lazy("mood:statistics")),
|
2021-10-24 15:35:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
for _, item in mood_items.items():
|
|
|
|
mood_section.add_item(item)
|
|
|
|
|
2024-11-18 09:49:04 +00:00
|
|
|
NAV_SECTIONS = [mood_section]
|
|
|
|
|
|
|
|
# Dashboard sections
|
|
|
|
|
|
|
|
mood_section = DashboardSection("Moods", "mood/dashboard_section.html")
|
|
|
|
|
|
|
|
DASHBOARD_SECTIONS = [mood_section]
|