From ac106ef864d27646c2e554fc28e65ea85e17b4e7 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Fri, 29 May 2015 01:32:07 +0100 Subject: [PATCH] Add links to user page in events --- RIGS/templates/RIGS/event_detail.html | 10 +++++++++- RIGS/templates/RIGS/event_table.html | 8 +++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/RIGS/templates/RIGS/event_detail.html b/RIGS/templates/RIGS/event_detail.html index d80969d1..13d97cf5 100644 --- a/RIGS/templates/RIGS/event_detail.html +++ b/RIGS/templates/RIGS/event_detail.html @@ -109,7 +109,15 @@ {% if event.is_rig %}
Event MIC
-
{{ event.mic.name }}
+
+ {% if perms.RIGS.view_profile %} + + {{ event.mic.name }} + + {% else %} + {{ event.mic.name }} + {% endif %} +
{% endif %}
Status
diff --git a/RIGS/templates/RIGS/event_table.html b/RIGS/templates/RIGS/event_table.html index e6467044..1868f2dd 100644 --- a/RIGS/templates/RIGS/event_table.html +++ b/RIGS/templates/RIGS/event_table.html @@ -83,7 +83,13 @@ {% if event.mic %} {{ event.mic.initials }}
- + {% if perms.RIGS.view_profile %} + + + + {% else %} + + {% endif %}
{% elif event.is_rig %}