Html design is hard...
This commit is contained in:
parent
2fdfacc4d7
commit
8981f0a387
|
@ -2,13 +2,8 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{% block shop_left_top %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-12">
|
||||
<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>
|
||||
|
@ -17,7 +12,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% block shop_content %}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -2,9 +2,11 @@
|
|||
{% load bootstrap3 %}
|
||||
{% load shop_tags %}
|
||||
|
||||
{% block shop_left_top %}
|
||||
{% block shop_content %}
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<p>
|
||||
Categories:
|
||||
Categories:<br />
|
||||
{% for category in categories %}
|
||||
<a href="{% url 'shop:index' %}?category={{category.slug}}"
|
||||
class="label label-{% if category.slug == current_category %}primary{% else %}default{% endif %}">
|
||||
|
@ -12,9 +14,9 @@
|
|||
</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% block shop_content %}
|
||||
<hr />
|
||||
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in a new issue