From 6e264357f6e8f227b8711be70020e2549d0eb568 Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Mon, 17 Jun 2024 21:12:56 +0200 Subject: [PATCH 01/57] Fixed: Adjust base template adds blocks for title and scripts so that templates can put those parts in the header. --- django/cantusdb_project/templates/base.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/django/cantusdb_project/templates/base.html b/django/cantusdb_project/templates/base.html index 67f79df6c..f19e9da7a 100644 --- a/django/cantusdb_project/templates/base.html +++ b/django/cantusdb_project/templates/base.html @@ -2,7 +2,6 @@ {% load static %} {% load helper_tags %} {# for has_group #} - {% if PROJECT_ENVIRONMENT == "PRODUCTION" %} @@ -19,6 +18,9 @@ {# to ensure Google/etc. only indexes the main production site, and not staging #} {% endif %} + {% block title %} + Cantus Database + {% endblock %} @@ -159,6 +161,9 @@ } + + {% block scripts %} + {% endblock %} From 01a1deafce12436a9bc3bd011dc71858b187fa9c Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Mon, 17 Jun 2024 21:16:33 +0200 Subject: [PATCH 02/57] Fixed: Move titles and scripts to their own block The title and scripts are no longer simply added to the body of the page, but are now actually contained by the header, where they should be. --- .../cantusdb_project/main_app/templates/400.html | 3 +-- .../cantusdb_project/main_app/templates/403.html | 4 ++++ .../cantusdb_project/main_app/templates/404.html | 4 ++++ .../main_app/templates/browse_chants.html | 12 +++++++++--- .../main_app/templates/century_detail.html | 6 +++++- .../main_app/templates/chant_create.html | 13 ++++++++++--- .../main_app/templates/chant_delete.html | 6 +++++- .../main_app/templates/chant_detail.html | 12 +++++++++--- .../main_app/templates/chant_edit.html | 15 +++++++++++---- .../main_app/templates/chant_search.html | 12 +++++++++--- .../templates/chant_seq_by_cantus_id.html | 6 +++++- .../templates/chant_syllabification_edit.html | 7 +++++-- .../main_app/templates/contact.html | 6 +++++- .../main_app/templates/content_overview.html | 7 +++++-- .../main_app/templates/feast_detail.html | 6 +++++- .../main_app/templates/feast_list.html | 12 +++++++++--- .../main_app/templates/genre_detail.html | 6 +++++- .../main_app/templates/genre_list.html | 12 +++++++++--- .../main_app/templates/indexer_list.html | 6 +++++- .../main_app/templates/items_count.html | 6 +++++- .../main_app/templates/melody_search.html | 11 +++++++++-- .../main_app/templates/office_detail.html | 6 +++++- .../main_app/templates/office_list.html | 6 +++++- .../main_app/templates/provenance_detail.html | 6 +++++- .../main_app/templates/registration/login.html | 6 +++++- .../templates/registration/reset_password.html | 5 ++++- .../registration/reset_password_complete.html | 5 ++++- .../registration/reset_password_confirm.html | 5 ++++- .../registration/reset_password_sent.html | 5 ++++- .../main_app/templates/sequence_detail.html | 6 +++++- .../main_app/templates/sequence_edit.html | 7 +++++-- .../main_app/templates/sequence_list.html | 6 +++++- .../main_app/templates/source_create.html | 7 ++++++- .../main_app/templates/source_delete.html | 6 +++++- .../main_app/templates/source_detail.html | 8 ++++++-- .../main_app/templates/source_edit.html | 6 +++++- .../main_app/templates/source_list.html | 6 +++++- .../main_app/templates/user_detail.html | 6 +++++- .../main_app/templates/user_list.html | 6 +++++- .../main_app/templates/user_source_list.html | 6 +++++- 40 files changed, 227 insertions(+), 59 deletions(-) diff --git a/django/cantusdb_project/main_app/templates/400.html b/django/cantusdb_project/main_app/templates/400.html index 3ee52993d..2d12bcd82 100644 --- a/django/cantusdb_project/main_app/templates/400.html +++ b/django/cantusdb_project/main_app/templates/400.html @@ -1,6 +1,5 @@ {% load static %} - @@ -8,7 +7,7 @@ - + 400 Bad Request | Cantus Database