add link to creditnotes in profile

This commit is contained in:
Thomas Steen Rasmussen 2016-06-19 22:07:44 +02:00
parent 8712ac4669
commit 1e2a9e5afd

View file

@ -18,21 +18,26 @@
</a>
{% if user.is_authenticated and user.orders.exists %}
<a href="{% url 'shop:order_list' %}" class="btn btn-black">
Orders
</a>
{% if has_tickets %}
<a href="{% url 'shop:ticket_list' %}" class="btn btn-black">
Tickets
</a>
<a href="{% url 'shop:order_list' %}" class="btn btn-black">
Orders
</a>
{% if has_tickets %}
<a href="{% url 'shop:ticket_list' %}" class="btn btn-black">
Tickets
</a>
{% endif %}
{% if user.creditnotes.exists %}
<a href="{% url 'shop:creditnote_list' %}" class="btn btn-black">
Credit Notes
</a>
{% endif %}
{% endif %}
{% endif %}
</p>
<hr />
</div>
</div>
{% block profile_content %}{% endblock %}
{% endblock %}