Doing previous orders button a bit more prominent
This commit is contained in:
parent
e9adcdd1cf
commit
c214036c51
|
@ -83,6 +83,11 @@ a, a:active, a:focus {
|
|||
color: rgb(255, 255, 255);
|
||||
}
|
||||
|
||||
.btn-grey {
|
||||
background-color: #777;
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
|
||||
#map {
|
||||
height: 500px;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,22 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{% block shop_left_top %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="pull-right">
|
||||
{% if user.is_authenticated and user.orders.exists %}
|
||||
<a href="{% url 'shop:order_list' %}" class="btn btn-grey">Previous orders</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% block shop_content %}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -2,22 +2,19 @@
|
|||
{% load bootstrap3 %}
|
||||
{% load shop_tags %}
|
||||
|
||||
{% block shop_content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{% block shop_left_top %}
|
||||
<p>
|
||||
Categories:
|
||||
{% for category in categories %}
|
||||
<a href="{% url 'shop:index' %}?category={{category.slug}}"
|
||||
class="label label-{% if category.slug == current_category %}primary{% else %}default{% endif %}">
|
||||
{{category}}
|
||||
{{category}}
|
||||
</a>
|
||||
{% endfor %}</p>
|
||||
<p><i>Looking for your <a href="{% url 'shop:order_list' %}">previous orders</a>?</i></p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
||||
{% block shop_content %}
|
||||
<hr />
|
||||
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in a new issue