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

@ -21,18 +21,23 @@
<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 %} {% if has_tickets %}
<a href="{% url 'shop:ticket_list' %}" class="btn btn-black"> <a href="{% url 'shop:ticket_list' %}" class="btn btn-black">
Tickets Tickets
</a> </a>
{% endif %} {% endif %}
{% if user.creditnotes.exists %}
<a href="{% url 'shop:creditnote_list' %}" class="btn btn-black">
Credit Notes
</a>
{% endif %}
{% endif %} {% endif %}
</p> </p>
<hr /> <hr />
</div> </div>
</div> </div>
{% block profile_content %}{% endblock %} {% block profile_content %}{% endblock %}
{% endblock %} {% endblock %}