Fix Dashboard link in navigation

This commit is contained in:
Kumi 2021-10-27 09:01:25 +02:00
parent 2e03956f1d
commit b6659a235f
2 changed files with 5 additions and 9 deletions

View file

@ -3,7 +3,6 @@
## General
[_] Make sure users can't access other users' data
[_] Allow configuration as single user instance
[_] User profiles / names / gateway config / time zone settings
## cbt module
@ -17,7 +16,7 @@
[_] Implement Telegram webhooks
[_] Implement Matrix messaging
## meds module
## health module
[_] Implement medication tracker
[_] Implement supply / refill system
@ -32,11 +31,7 @@
## Frontend
[_] Better icons for sidebar items
[_] Sidebar auto-generation (?)
[_] Fix sidebar highlighting for pages with same name
[_] Move dashboard components to module templates
[_] Fix buttons on mobile devices
[_] Fix buttons on mobile devices (?)
## environment module

View file

@ -1,5 +1,6 @@
from django import template
from django.conf import settings
from django.urls import reverse_lazy
from importlib import import_module
@ -20,8 +21,8 @@ def sidebar_nav():
pass
return """
<li class="nav-item {% if title == "Dashboard" %}active{% endif %}">
<a class="nav-link" href="{% url "frontend:dashboard" %}">
<li class="nav-item">
<a class="nav-link" href=\"""" + reverse_lazy("frontend:dashboard") + """\">
<i class="fas fa-fw fa-tachometer-alt"></i>
<span>Dashboard</span></a>
</li>