Html design is hard...

This commit is contained in:
Víðir Valberg Guðmundsson 2016-05-30 19:58:58 +02:00
parent 2fdfacc4d7
commit 8981f0a387
2 changed files with 15 additions and 19 deletions

View file

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

View file

@ -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>&nbsp;
{% endfor %}
</p>
{% endblock %}
</div>
</div>
{% block shop_content %}
<hr />
<div class="row">