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,19 +2,21 @@
|
|||
{% load bootstrap3 %}
|
||||
{% load shop_tags %}
|
||||
|
||||
{% 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}}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
||||
{% block shop_content %}
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<p>
|
||||
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 %}">
|
||||
{{category}}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in a new issue