Add a link to orders and tickets on the profile page.
This commit is contained in:
parent
cf3b4dee8b
commit
495608f1ba
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue