Remove unused partials loading from various template files

This commit is contained in:
Ross
2026-01-26 12:43:11 +00:00
parent d070adc326
commit a667566db6
15 changed files with 15 additions and 28 deletions
@@ -1,5 +1,5 @@
{% extends 'anatomy/base.html' %} {% extends 'anatomy/base.html' %}
{% load partials %}
{% block content %} {% block content %}
{% load static %} {% load static %}
{% include 'anatomy/question_link_header.html' %} {% include 'anatomy/question_link_header.html' %}
@@ -1,5 +1,4 @@
{% load partials %}
{% partialdef case-series %} {% partialdef case-series %}
{% for series in case.get_ordered_series %} {% for series in case.get_ordered_series %}
<span class="series-block" id="series-block-{{ series.pk }}"> <span class="series-block" id="series-block-{{ series.pk }}">
+1 -2
View File
@@ -1,7 +1,6 @@
{% extends 'atlas/exams.html' %} {% extends 'atlas/exams.html' %}
{% load partials %}
{% partialdef casedetails-management-links %} {% partialdef casedetails-management-links %}
<div class="btn-toolbar" role="toolbar" aria-label="Case management links"> <div class="btn-toolbar" role="toolbar" aria-label="Case management links">
@@ -1,8 +1,7 @@
<!-- filepath: /home/ross/rad/rad/atlas/templates/atlas/linked_cases_overview.html --> <!-- filepath: /home/ross/rad/rad/atlas/templates/atlas/linked_cases_overview.html -->
{% extends "base.html" %} {% extends "base.html" %}
{% load partials %}
{% block content %} {% block content %}
<h1>Linked Cases Overview</h1> <h1>Linked Cases Overview</h1>
@@ -1,5 +1,4 @@
{% load partials %}
{% comment %} Minimal fragment rendering the exam-list partialdef for HTMX swaps. {% endcomment %} {% comment %} Minimal fragment rendering the exam-list partialdef for HTMX swaps. {% endcomment %}
{% with exams=exams app_name=app_name marking=marking collection=collection %} {% with exams=exams app_name=app_name marking=marking collection=collection %}
{% include "exam_list.html#exam-list" %} {% include "exam_list.html#exam-list" %}
@@ -1,5 +1,4 @@
{% load partials %}
{% partialdef publish-results %} {% partialdef publish-results %}
<div class="exam-status-container d-flex align-items-center gap-2"> <div class="exam-status-container d-flex align-items-center gap-2">
<div class="me-2 small text-muted">Results</div> <div class="me-2 small text-muted">Results</div>
-1
View File
@@ -85,7 +85,6 @@ INSTALLED_APPS = [
'django_jsonforms', 'django_jsonforms',
'django_svelte_jsoneditor', 'django_svelte_jsoneditor',
'django_psutil_dash', 'django_psutil_dash',
'template_partials',
] ]
+2 -2
View File
@@ -1,5 +1,5 @@
#Django==3.2.13 #Django==3.2.13
Django==5.2.7 Django==6.0.1
django_debug_toolbar django_debug_toolbar
django_jquery django_jquery
django_reversion django_reversion
@@ -52,7 +52,7 @@ git+https://github.com/xkjq/django-jsonforms.git@bump-json-editor-lib
django_svelte_jsoneditor django_svelte_jsoneditor
psutil psutil
django-psutil-dash django-psutil-dash
django-template-partials
easy_thumbnails easy_thumbnails
requests requests
pygments pygments
+1 -3
View File
@@ -1,7 +1,5 @@
{% extends 'sbas/base.html' %} {% extends 'sbas/base.html' %}
{% load partials %}
{% partialdef links-partial %} {% partialdef links-partial %}
<div class="btn-group mt-3 mt-md-0" role="group" aria-label="Actions"> <div class="btn-group mt-3 mt-md-0" role="group" aria-label="Actions">
+1 -1
View File
@@ -1,7 +1,7 @@
{% extends 'sbas/base.html' %} {% extends 'sbas/base.html' %}
{% load static %} {% load static %}
{% load partials %}
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block js %} {% block js %}
@@ -1,7 +1,5 @@
{% extends 'sbas/base.html' %} {% extends 'sbas/base.html' %}
{% load partials %}
{% block content %} {% block content %}
<h2>Filtered questions</h2> <h2>Filtered questions</h2>
@@ -1,7 +1,5 @@
{% extends 'sbas/base.html' %} {% extends 'sbas/base.html' %}
{% load partials %}
{% block content %} {% block content %}
<h2>Review Questions</h2> <h2>Review Questions</h2>
+1 -1
View File
@@ -1,5 +1,5 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% load partials %}
{% partialdef viewer %} {% partialdef viewer %}
<div style="height: 100vh; width: 95%, mangin: 0; padding: 0; overflow: hidden;"> <div style="height: 100vh; width: 95%, mangin: 0; padding: 0; overflow: hidden;">
+1 -1
View File
@@ -1,5 +1,5 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% load partials %}
{% partialdef login-block %} {% partialdef login-block %}
Logging in here allows your account to be linked with CIMAR. You may periodically need to re-login to keep the link active. Logging in here allows your account to be linked with CIMAR. You may periodically need to re-login to keep the link active.
+1 -2
View File
@@ -1,7 +1,6 @@
{% extends app_name|add:'/base.html' %} {% extends app_name|add:'/base.html' %}
{% load partials %}
{% partialdef exam-list %} {% partialdef exam-list %}
<ul class="exam-list exam-list-active"> <ul class="exam-list exam-list-active">
{% for exam in exams %} {% for exam in exams %}