From 495608f1ba9cf0b5ee7b7e23c2efe49afccfabd1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?=
Date: Fri, 3 Jun 2016 18:53:33 +0200
Subject: [PATCH] Add a link to orders and tickets on the profile page.
---
profiles/templates/profiles/profile_base.html | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/profiles/templates/profiles/profile_base.html b/profiles/templates/profiles/profile_base.html
index 99fa1663..c0f01798 100644
--- a/profiles/templates/profiles/profile_base.html
+++ b/profiles/templates/profiles/profile_base.html
@@ -13,6 +13,17 @@
Manage emails
+
+ {% if user.is_authenticated and user.orders.exists %}
+
+ Orders
+
+ {% if has_tickets %}
+
+ Tickets
+
+ {% endif %}
+ {% endif %}