Nav items linking to timeline from dashboard

Fixes #271
This commit is contained in:
Ohad Lutzky 2021-08-06 15:56:42 +01:00 committed by Christopher Charbonneau Wells
parent de1a8f230a
commit 5e4e3753e7
2 changed files with 20 additions and 0 deletions

View File

@ -100,6 +100,10 @@
@extend .fa-thermometer-three-quarters;
}
.icon-timeline {
@extend .fa-history;
}
.icon-timer {
@extend .fa-clock-o;
}

View File

@ -9,6 +9,14 @@
</a>
<div class="d-lg-none d-md-none d-flex ml-auto p-0 mr-2">
<div>
<!-- TODO: Actually link to the timeline... but for which child? -->
<a class="text-success"
href="#"
aria-expanded="false"><i class="icon icon-2x icon-timeline" aria-hidden="true"></i>
</a>
&nbsp;
</div>
<form action="{% url 'core:timer-add-quick' %}" role="form" method="post" class="mr-2">
{% csrf_token %}
<label class="sr-only">{% trans "Quick Start Timer" %}</label>
@ -89,6 +97,14 @@
</a>
</li>
<li class="nav-item{% if request.path == '/' %} active{% endif %}">
<!-- TODO: Actually link to the timeline... but for which child? -->
<a class="nav-link" href="{% url 'dashboard:dashboard' %}">
<i class="icon icon-timeline" aria-hidden="true"></i>
{% trans "Timeline" %}
</a>
</li>
<li class="nav-item dropdown">
<a id="nav-children-menu-link"
class="nav-link dropdown-toggle"