kumify/dreams/features.py

24 lines
696 B
Python
Raw Normal View History

from frontend.classes import NavSection, NavItem, DashboardSection
2021-10-24 15:45:23 +00:00
from django.urls import reverse_lazy
# 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)
NAV_SECTIONS = [dreams_section]
# Dashboard sections
dreams_section = DashboardSection("Dreams", "dreams/dashboard_section.html")
DASHBOARD_SECTIONS = [dreams_section]