Fixed top menu that wrapped around on narrow view
Fixes issue #475 Also shows link to Orders, Tickets and Creditnotes if relevant in the account menu In addition to the wrapping, the margin of the dropdown menus have also been adjusted a tad
This commit is contained in:
parent
3a7ac99fea
commit
543616e4b0
|
@ -62,7 +62,7 @@ a, a:active, a:focus {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#top-navbar > .nav li a {
|
#top-navbar > .nav > li > a {
|
||||||
padding: 30px 7px;
|
padding: 30px 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,11 @@ a, a:active, a:focus {
|
||||||
border-top: 1px solid #ccc;
|
border-top: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
.navbar .nav li a {
|
.navbar .nav li a {
|
||||||
padding: 15px;
|
padding: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-group-vertical > .btn{
|
||||||
|
padding: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,16 +78,30 @@
|
||||||
<li><a href="{% url 'wish_list_redirect' %}">Wishlist</a></li>
|
<li><a href="{% url 'wish_list_redirect' %}">Wishlist</a></li>
|
||||||
|
|
||||||
{% if request.user.is_staff %}
|
{% if request.user.is_staff %}
|
||||||
<li><a href="{% url 'admin:index' %}">Django Admin</a></li>
|
<li><a href="{% url 'admin:index' %}">Admin</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<li><a href="{% url 'profiles:detail' %}">Account</a></li>
|
<li class="dropdown">
|
||||||
<li>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Account<span class="caret"></span></a>
|
||||||
<a href="{% url 'account_logout' %}">
|
<ul class="dropdown-menu">
|
||||||
Logout
|
<li><a href="{% url 'profiles:detail' %}">Profile</a></li>
|
||||||
</a>
|
{% if user.orders.exists %}
|
||||||
|
{% url 'shop:order_list' as orders_list_url %}
|
||||||
|
<li><a href="{{ orders_list_url }}">Orders</a></li>
|
||||||
|
|
||||||
|
{% url 'tickets:shopticket_list' as ticket_list_url %}
|
||||||
|
<li><a href="{{ ticket_list_url }}">Tickets</a></li>
|
||||||
|
|
||||||
|
{% if user.creditnotes.exists %}
|
||||||
|
{% url 'shop:creditnote_list' as creditnote_list_url %}
|
||||||
|
<li><a href="{{ creditnote_list_url }}">Credit Notes</a></li>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
<li role="separator" class="divider"></li>
|
||||||
|
<li><a href="{% url 'account_logout' %}">Logout</a></li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a href="{% url 'account_login' %}">Login</a></li>
|
<li><a href="{% url 'account_login' %}">Login</a></li>
|
||||||
|
|
Loading…
Reference in a new issue