From 22812c5ec13d2c12ec24aae2b94f66e87a9e29db Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 23 Dec 2024 12:36:41 +0000 Subject: [PATCH] test cimar iframe --- anatomy/templates/anatomy/exams.html | 2 +- atlas/templates/atlas/collection_headers.html | 2 +- rad/urls.py | 1 + rad/views.py | 6 ++++++ templates/cimar.html | 20 +++++++++++++++++++ 5 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 templates/cimar.html diff --git a/anatomy/templates/anatomy/exams.html b/anatomy/templates/anatomy/exams.html index c7f1d908..db5f4260 100644 --- a/anatomy/templates/anatomy/exams.html +++ b/anatomy/templates/anatomy/exams.html @@ -11,5 +11,5 @@ Candidates / Stats / {% endif %} - Add New Question + Add New Question {% endblock %} diff --git a/atlas/templates/atlas/collection_headers.html b/atlas/templates/atlas/collection_headers.html index 890e00f1..81085da5 100644 --- a/atlas/templates/atlas/collection_headers.html +++ b/atlas/templates/atlas/collection_headers.html @@ -1,5 +1,5 @@ {% if request.user.is_authenticated %} -
Collection: {{collection.name}}-> Overview / + Collection: {{collection.name}}-> Overview / History / Mark / Scores / diff --git a/rad/urls.py b/rad/urls.py index fe126951..8d626561 100644 --- a/rad/urls.py +++ b/rad/urls.py @@ -155,6 +155,7 @@ urlpatterns = [ # path('select2/', include('select2.urls')), *HTMXAutoComplete.url_dispatcher('ac'), path('psutil/', psutil_urlpatterns(), name='psutil'), + path("cimar/", views.cimar, name="cimar"), ] diff --git a/rad/views.py b/rad/views.py index 75874591..79c9a191 100644 --- a/rad/views.py +++ b/rad/views.py @@ -511,6 +511,12 @@ def view_feedback(request): def privacy_view(request): return render(request, "privacy.html") +def cimar(request): + if "link_id" in request.GET: + link_id = request.GET["link_id"] + return render(request, "cimar.html", {"link_id": link_id}) + return render(request, "cimar.html") + def about_view(request): return render(request, "about.html") diff --git a/templates/cimar.html b/templates/cimar.html new file mode 100644 index 00000000..feb2642c --- /dev/null +++ b/templates/cimar.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} + +{% block content %} +
+ + + {% if link_id %} + + + Click here to open the CIMAR viewer in a new tab + + {% else %} + + No link id + {% endif %} + + + +
+{% endblock %} \ No newline at end of file