bornhack-website/shop/templates/shop_base.html

48 lines
1.5 KiB
HTML
Raw Normal View History

2016-05-19 09:19:51 +00:00
{% extends 'base.html' %}
{% block content %}
<div class="row">
2016-05-30 17:58:58 +00:00
<div class="col-md-12">
2016-05-30 18:56:03 +00:00
<ol class="breadcrumb">
<li><a href="{% url 'shop:index' %}">Shop</a></li>
{% if product %}
2016-06-19 19:37:25 +00:00
<li><a href="{% url 'shop:index' %}?category={{product.category.slug}}">{{ product.category }}</a></li>
<li class="active">{{ product.name }}</li>
2016-05-30 18:56:03 +00:00
{% elif current_category %}
2016-06-19 19:37:25 +00:00
<li class="active">{{ current_category }}</li>
2016-05-30 18:56:03 +00:00
{% endif %}
{% if user.is_authenticated and user.orders.exists %}
2016-06-19 20:04:37 +00:00
{% if user.creditnotes.exists %}
<li class="pull-right"><a href="{% url 'shop:creditnote_list' %}">Credit Notes</a></li>
{% endif %}
2016-06-19 19:37:25 +00:00
{% if has_tickets %}
<li class="pull-right"><a href="{% url 'shop:ticket_list' %}">Tickets</a></li>
{% endif %}
2016-07-05 21:43:18 +00:00
<li class="pull-right"><a href="{% url 'shop:order_list' %}">Orders</a></li>
<li class="pull-right no-before">
{% if current_order and current_order.get_number_of_items %}
<a href="{% url 'shop:order_detail' pk=current_order.pk %}">
{% endif %}
<i class="glyphicon glyphicon-shopping-cart"></i>
<span class="badge">
{{ current_order.get_number_of_items|default:0 }}
</span>
{% if current_order and current_order.get_number_of_items %}
</a>
{% endif %}
</li>
{% endif %}
2016-05-30 18:56:03 +00:00
</ol>
</div>
</div>
2016-05-19 09:19:51 +00:00
{% block shop_content %}
2016-05-30 18:56:03 +00:00
2016-05-19 09:19:51 +00:00
{% endblock %}
{% endblock %}