Doing previous orders button a bit more prominent

This commit is contained in:
Víðir Valberg Guðmundsson 2016-05-30 18:54:40 +02:00
parent e9adcdd1cf
commit c214036c51
3 changed files with 27 additions and 9 deletions

View file

@ -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;
}

View file

@ -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 %}

View file

@ -2,10 +2,7 @@
{% 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 %}
@ -13,11 +10,11 @@
class="label label-{% if category.slug == current_category %}primary{% else %}default{% endif %}">
{{category}}
</a>&nbsp;
{% 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">