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

View File

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