Fix Dashboard link in navigation
This commit is contained in:
parent
2e03956f1d
commit
b6659a235f
2 changed files with 5 additions and 9 deletions
9
TODO.md
9
TODO.md
|
@ -3,7 +3,6 @@
|
||||||
## General
|
## General
|
||||||
|
|
||||||
[_] Make sure users can't access other users' data
|
[_] Make sure users can't access other users' data
|
||||||
[_] Allow configuration as single user instance
|
|
||||||
[_] User profiles / names / gateway config / time zone settings
|
[_] User profiles / names / gateway config / time zone settings
|
||||||
|
|
||||||
## cbt module
|
## cbt module
|
||||||
|
@ -17,7 +16,7 @@
|
||||||
[_] Implement Telegram webhooks
|
[_] Implement Telegram webhooks
|
||||||
[_] Implement Matrix messaging
|
[_] Implement Matrix messaging
|
||||||
|
|
||||||
## meds module
|
## health module
|
||||||
|
|
||||||
[_] Implement medication tracker
|
[_] Implement medication tracker
|
||||||
[_] Implement supply / refill system
|
[_] Implement supply / refill system
|
||||||
|
@ -32,11 +31,7 @@
|
||||||
|
|
||||||
## Frontend
|
## Frontend
|
||||||
|
|
||||||
[_] Better icons for sidebar items
|
[_] Fix buttons on mobile devices (?)
|
||||||
[_] Sidebar auto-generation (?)
|
|
||||||
[_] Fix sidebar highlighting for pages with same name
|
|
||||||
[_] Move dashboard components to module templates
|
|
||||||
[_] Fix buttons on mobile devices
|
|
||||||
|
|
||||||
## environment module
|
## environment module
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
from django import template
|
from django import template
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from django.urls import reverse_lazy
|
||||||
|
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
|
|
||||||
|
@ -20,8 +21,8 @@ def sidebar_nav():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return """
|
return """
|
||||||
<li class="nav-item {% if title == "Dashboard" %}active{% endif %}">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{% url "frontend:dashboard" %}">
|
<a class="nav-link" href=\"""" + reverse_lazy("frontend:dashboard") + """\">
|
||||||
<i class="fas fa-fw fa-tachometer-alt"></i>
|
<i class="fas fa-fw fa-tachometer-alt"></i>
|
||||||
<span>Dashboard</span></a>
|
<span>Dashboard</span></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue