TimeDispatcher/context_processors.py

17 lines
417 B
Python
Raw Normal View History

2025-01-26 19:48:51 +01:00
from TimeDispatcher.settings import APP_VERSION
def version(request):
return {
"version": APP_VERSION
}
2025-01-26 00:53:17 +01:00
def navbar_links(request):
return {
"nav_links": [
{'view': 'dashboard', 'label': 'Dashboard'},
{'view': 'projects', 'label': 'Projects'},
{'view': 'parents', 'label': 'Parents'},
{'view': 'import', 'label': 'Import'},
]
}