From 8db0d6a465be1723afa101931f05597826d297c7 Mon Sep 17 00:00:00 2001 From: Thorge Petersen <petersen@rz.uni-kiel.de> Date: Wed, 7 Jun 2023 10:44:50 +0200 Subject: [PATCH] Show survey link only if user is not referred from odsh site --- ckanext/odsh/templates/page.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ckanext/odsh/templates/page.html b/ckanext/odsh/templates/page.html index c375a0ae..4c7c78fd 100644 --- a/ckanext/odsh/templates/page.html +++ b/ckanext/odsh/templates/page.html @@ -21,6 +21,7 @@ {% block flash %} {{ super() }} + {% if not request.referrer or not request.referrer.startswith(h.odsh_public_url()) %} <div class="alert alert-info" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> @@ -34,6 +35,8 @@ </p> </div> + {% endif %} + {% endblock %} {% block toolbar %} -- GitLab