Add a link to orders and tickets on the profile page.

This commit is contained in:
Víðir Valberg Guðmundsson 2016-06-03 18:53:33 +02:00
parent cf3b4dee8b
commit 495608f1ba

View file

@ -13,6 +13,17 @@
<a href="{% url 'account_email' %}" class="btn btn-black"> <a href="{% url 'account_email' %}" class="btn btn-black">
Manage emails Manage emails
</a> </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>
{% endif %}
{% endif %}
</p> </p>
<hr /> <hr />
</div> </div>