Add hrefs to menu links so they work on mobile.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-21 09:55:06 -04:00
parent 3d8ea65bf9
commit f3fc219980
2 changed files with 14 additions and 8 deletions

View File

@ -19,8 +19,9 @@
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
id="nav-activity-menu-link"
<a id="nav-activity-menu-link"
class="nav-link dropdown-toggle"
href="#"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"><i class="fa fa-child" aria-hidden="true"></i> Activities</a>
@ -87,10 +88,14 @@
{% if request.user %}
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-user" aria-hidden="true"></i> {{ request.user }}
<a id="nav-user-menu-link"
class="nav-link dropdown-toggle"
href="#"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"><i class="fa fa-user" aria-hidden="true"></i> {{ request.user }}
</a>
<div class="dropdown-menu">
<div class="dropdown-menu" aria-labelledby="nav-user-menu-link">
<a href="{% url 'api:api-root' %}"
class="dropdown-item"
target="_blank">API Browser</a>

View File

@ -1,10 +1,11 @@
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
id="timer-dropdown-menu-link"
<a id="nav-timer-menu-link"
class="nav-link dropdown-toggle"
href="#"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"><i class="fa fa-clock-o" aria-hidden="true"></i> Timers</a>
<div class="dropdown-menu" aria-labelledby="timer-dropdown-menu-link">
<div class="dropdown-menu" aria-labelledby="nav-timer-menu-link">
{% if perms.core.add_timer %}
<a class="dropdown-item" href="{% url 'timer-add-quick' %}">
<i class="fa fa-plus" aria-hidden="true"></i> Create Timer