From ec54fdc3bb88b57079dae0491c0c51385a5f1b41 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 27 Nov 2024 11:34:21 +0100 Subject: [PATCH] Restore service scheme on pages --- app/templates/corpora/analysis.html.j2 | 11 ++++------- app/templates/corpora/corpus.html.j2 | 2 +- app/templates/corpora/create.html.j2 | 2 +- app/templates/corpora/import.html.j2 | 2 +- app/templates/corpora/public_corpus.html.j2 | 2 +- app/templates/jobs/job.html.j2 | 2 +- app/templates/services/corpus_analysis.html.j2 | 4 ++-- 7 files changed, 11 insertions(+), 14 deletions(-) diff --git a/app/templates/corpora/analysis.html.j2 b/app/templates/corpora/analysis.html.j2 index 222193de..e2ebb2d6 100644 --- a/app/templates/corpora/analysis.html.j2 +++ b/app/templates/corpora/analysis.html.j2 @@ -14,7 +14,10 @@ {% endblock stylesheets %} -{% block navbar_secondary_content %} +{% block main_attributes %}class="service-color lighten" data-service="corpus-analysis" id="corpus-analysis-container"{% endblock main_attributes %} + + +{% block page_content %} -{% endblock navbar_secondary_content %} - -{% block main_attribs %} class="service-color lighten" data-service="corpus-analysis" id="corpus-analysis-container" style="margin-top: 48px;"{% endblock main_attribs %} - - -{% block page_content %}

{{ title }}

diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2 index 23a4ece8..740f08b5 100644 --- a/app/templates/corpora/corpus.html.j2 +++ b/app/templates/corpora/corpus.html.j2 @@ -8,7 +8,7 @@ {% endblock stylesheets %} -{% block main_attribs %} class="service-color lighten" data-service="corpus-analysis"{% endblock main_attribs %} +{% block main_attributes %} class="service-color lighten" data-service="corpus-analysis"{% endblock main_attributes %} {% block page_content %}
diff --git a/app/templates/corpora/create.html.j2 b/app/templates/corpora/create.html.j2 index fbd8ea4b..37610e1c 100644 --- a/app/templates/corpora/create.html.j2 +++ b/app/templates/corpora/create.html.j2 @@ -1,7 +1,7 @@ {% extends "base.html.j2" %} {% import "wtf.html.j2" as wtf %} -{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %} +{% block main_attributes %}class="service-color lighten" data-service="corpus-analysis"{% endblock main_attributes %} {% block page_content %}
diff --git a/app/templates/corpora/import.html.j2 b/app/templates/corpora/import.html.j2 index c9b527b9..a60f0795 100644 --- a/app/templates/corpora/import.html.j2 +++ b/app/templates/corpora/import.html.j2 @@ -1,7 +1,7 @@ {% extends "base.html.j2" %} {% import "wtf.html.j2" as wtf %} -{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %} +{% block main_attributes %}class="service-color lighten" data-service="corpus-analysis"{% endblock main_attributes %} {% block page_content %}
diff --git a/app/templates/corpora/public_corpus.html.j2 b/app/templates/corpora/public_corpus.html.j2 index 3ceed28b..9a835601 100644 --- a/app/templates/corpora/public_corpus.html.j2 +++ b/app/templates/corpora/public_corpus.html.j2 @@ -1,7 +1,7 @@ {% extends "base.html.j2" %} {% import "wtf.html.j2" as wtf %} -{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %} +{% block main_attributes %}class="service-color lighten" data-service="corpus-analysis"{% endblock main_attributes %} {% block page_content %}
diff --git a/app/templates/jobs/job.html.j2 b/app/templates/jobs/job.html.j2 index 0b7b8e35..b852b5ed 100644 --- a/app/templates/jobs/job.html.j2 +++ b/app/templates/jobs/job.html.j2 @@ -1,6 +1,6 @@ {% extends "base.html.j2" %} -{% block main_attribs %} class="service-scheme" data-service="{{ job.service }}"{% endblock main_attribs %} +{% block main_attributes %} class="service-color lighten" data-service="{{ job.service }}"{% endblock main_attributes %} {% block page_content %}
diff --git a/app/templates/services/corpus_analysis.html.j2 b/app/templates/services/corpus_analysis.html.j2 index ea5b07a6..7b5627c2 100644 --- a/app/templates/services/corpus_analysis.html.j2 +++ b/app/templates/services/corpus_analysis.html.j2 @@ -26,8 +26,8 @@