From 8ad2a899f9fc4caf18bcd397341e99f683c7430f Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Sun, 26 Jan 2020 13:47:02 +0000 Subject: [PATCH] FIX: Remove event modal history deadlink for basic users Also removes some links on the RIGS homepage that will deadlink for them --- RIGS/templates/RIGS/event_detail.html | 6 +++++- RIGS/templates/RIGS/index.html | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/RIGS/templates/RIGS/event_detail.html b/RIGS/templates/RIGS/event_detail.html index b3e7d3a5..10a947fe 100644 --- a/RIGS/templates/RIGS/event_detail.html +++ b/RIGS/templates/RIGS/event_detail.html @@ -252,15 +252,19 @@ {% endblock %} -{% if request.is_ajax and perms.RIGS.view_event %} +{% if request.is_ajax %} {% block footer %}
+ {% if perms.RIGS.view_event %}
+ {% else %} +
+ {% endif %}
Open Event Page diff --git a/RIGS/templates/RIGS/index.html b/RIGS/templates/RIGS/index.html index acd1a707..29b7c320 100644 --- a/RIGS/templates/RIGS/index.html +++ b/RIGS/templates/RIGS/index.html @@ -11,7 +11,7 @@
- +

Quick Links

@@ -26,10 +26,11 @@ TEC Forum TEC Wiki + {% if perms.RIGS.view_event %} Pre-Event Risk Assessment Price List Subhire Insurance Form - + {% endif %}
@@ -73,7 +74,7 @@
{% if perms.RIGS.view_event %}
- {% include 'RIGS/activity_feed.html' %} + {% include 'RIGS/activity_feed.html' %}
{% endif %}