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> </a>
{% if user.is_authenticated and user.orders.exists %} {% if user.is_authenticated and user.orders.exists %}
<a href="{% url 'shop:order_list' %}" class="btn btn-black"> <a href="{% url 'shop:order_list' %}" class="btn btn-black">
Orders Orders
</a> </a>
{% if has_tickets %}
<a href="{% url 'shop:ticket_list' %}" class="btn btn-black"> {% if has_tickets %}
Tickets <a href="{% url 'shop:ticket_list' %}" class="btn btn-black">
</a> Tickets
</a>
{% endif %}
{% if user.creditnotes.exists %}
<a href="{% url 'shop:creditnote_list' %}" class="btn btn-black">
Credit Notes
</a>
{% endif %}
{% endif %} {% endif %}
{% endif %}
</p> </p>
<hr /> <hr />
</div> </div>
</div> </div>
{% block profile_content %}{% endblock %} {% block profile_content %}{% endblock %}
{% endblock %} {% endblock %}