From 9487aa7a606a7df6cadc8b91a41558edee0b6224 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Mon, 13 Nov 2023 15:53:14 +0100 Subject: [PATCH] Restructure modals and base template --- app/main/routes.py | 6 --- .../_modals/_manual}/_01_introduction.html.j2 | 0 .../_02_registration_and_log_in.html.j2 | 0 .../_modals/_manual}/_03_dashboard.html.j2 | 0 .../_modals/_manual}/_06_services.html.j2 | 0 ...closer_look_at_the_corpus_analysis.html.j2 | 0 .../_manual}/_08_cqp_query_language.html.j2 | 0 .../_manual}/_09_query_builder.html.j2 | 0 .../_modals/_manual}/_10_tagsets.html.j2 | 0 .../_modals/manual.html.j2} | 16 +++---- .../_modals/terms_of_use.html.j2} | 0 .../{_footer.html.j2 => _base/footer.html.j2} | 0 app/templates/_base/modals.html.j2 | 5 +++ .../{_navbar.html.j2 => _base/navbar.html.j2} | 0 .../roadmap.html.j2} | 0 .../scripts.html.j2} | 0 .../sidenav.html.j2} | 0 .../{_styles.html.j2 => _base/styles.html.j2} | 0 app/templates/base.html.j2 | 18 +++----- app/templates/main/user_manual.html.j2 | 43 ------------------- 20 files changed, 19 insertions(+), 69 deletions(-) rename app/templates/{main/_manual_modal => _base/_modals/_manual}/_01_introduction.html.j2 (100%) rename app/templates/{main/_manual_modal => _base/_modals/_manual}/_02_registration_and_log_in.html.j2 (100%) rename app/templates/{main/_manual_modal => _base/_modals/_manual}/_03_dashboard.html.j2 (100%) rename app/templates/{main/_manual_modal => _base/_modals/_manual}/_06_services.html.j2 (100%) rename app/templates/{main/_manual_modal => _base/_modals/_manual}/_07_a_closer_look_at_the_corpus_analysis.html.j2 (100%) rename app/templates/{main/_manual_modal => _base/_modals/_manual}/_08_cqp_query_language.html.j2 (100%) rename app/templates/{main/_manual_modal => _base/_modals/_manual}/_09_query_builder.html.j2 (100%) rename app/templates/{main/_manual_modal => _base/_modals/_manual}/_10_tagsets.html.j2 (100%) rename app/templates/{main/_manual_modal.html.j2 => _base/_modals/manual.html.j2} (72%) rename app/templates/{_terms_of_use_modal.html.j2 => _base/_modals/terms_of_use.html.j2} (100%) rename app/templates/{_footer.html.j2 => _base/footer.html.j2} (100%) create mode 100644 app/templates/_base/modals.html.j2 rename app/templates/{_navbar.html.j2 => _base/navbar.html.j2} (100%) rename app/templates/{_roadmap.html.j2 => _base/roadmap.html.j2} (100%) rename app/templates/{_scripts.html.j2 => _base/scripts.html.j2} (100%) rename app/templates/{_sidenav.html.j2 => _base/sidenav.html.j2} (100%) rename app/templates/{_styles.html.j2 => _base/styles.html.j2} (100%) delete mode 100644 app/templates/main/user_manual.html.j2 diff --git a/app/main/routes.py b/app/main/routes.py index faf579b0..255edb2d 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -45,12 +45,6 @@ def dashboard(): ) -# @bp.route('/user_manual') -# @register_breadcrumb(bp, '.user_manual', 'helpUser manual') -# def user_manual(): -# return render_template('main/user_manual.html.j2', title='User manual') - - @bp.route('/news') @register_breadcrumb(bp, '.news', 'emailNews') def news(): diff --git a/app/templates/main/_manual_modal/_01_introduction.html.j2 b/app/templates/_base/_modals/_manual/_01_introduction.html.j2 similarity index 100% rename from app/templates/main/_manual_modal/_01_introduction.html.j2 rename to app/templates/_base/_modals/_manual/_01_introduction.html.j2 diff --git a/app/templates/main/_manual_modal/_02_registration_and_log_in.html.j2 b/app/templates/_base/_modals/_manual/_02_registration_and_log_in.html.j2 similarity index 100% rename from app/templates/main/_manual_modal/_02_registration_and_log_in.html.j2 rename to app/templates/_base/_modals/_manual/_02_registration_and_log_in.html.j2 diff --git a/app/templates/main/_manual_modal/_03_dashboard.html.j2 b/app/templates/_base/_modals/_manual/_03_dashboard.html.j2 similarity index 100% rename from app/templates/main/_manual_modal/_03_dashboard.html.j2 rename to app/templates/_base/_modals/_manual/_03_dashboard.html.j2 diff --git a/app/templates/main/_manual_modal/_06_services.html.j2 b/app/templates/_base/_modals/_manual/_06_services.html.j2 similarity index 100% rename from app/templates/main/_manual_modal/_06_services.html.j2 rename to app/templates/_base/_modals/_manual/_06_services.html.j2 diff --git a/app/templates/main/_manual_modal/_07_a_closer_look_at_the_corpus_analysis.html.j2 b/app/templates/_base/_modals/_manual/_07_a_closer_look_at_the_corpus_analysis.html.j2 similarity index 100% rename from app/templates/main/_manual_modal/_07_a_closer_look_at_the_corpus_analysis.html.j2 rename to app/templates/_base/_modals/_manual/_07_a_closer_look_at_the_corpus_analysis.html.j2 diff --git a/app/templates/main/_manual_modal/_08_cqp_query_language.html.j2 b/app/templates/_base/_modals/_manual/_08_cqp_query_language.html.j2 similarity index 100% rename from app/templates/main/_manual_modal/_08_cqp_query_language.html.j2 rename to app/templates/_base/_modals/_manual/_08_cqp_query_language.html.j2 diff --git a/app/templates/main/_manual_modal/_09_query_builder.html.j2 b/app/templates/_base/_modals/_manual/_09_query_builder.html.j2 similarity index 100% rename from app/templates/main/_manual_modal/_09_query_builder.html.j2 rename to app/templates/_base/_modals/_manual/_09_query_builder.html.j2 diff --git a/app/templates/main/_manual_modal/_10_tagsets.html.j2 b/app/templates/_base/_modals/_manual/_10_tagsets.html.j2 similarity index 100% rename from app/templates/main/_manual_modal/_10_tagsets.html.j2 rename to app/templates/_base/_modals/_manual/_10_tagsets.html.j2 diff --git a/app/templates/main/_manual_modal.html.j2 b/app/templates/_base/_modals/manual.html.j2 similarity index 72% rename from app/templates/main/_manual_modal.html.j2 rename to app/templates/_base/_modals/manual.html.j2 index 9233fb0d..34ce1877 100644 --- a/app/templates/main/_manual_modal.html.j2 +++ b/app/templates/_base/_modals/manual.html.j2 @@ -13,35 +13,35 @@

- {% include "main/_manual_modal/_01_introduction.html.j2" %} + {% include "_base/_modals/_manual/_01_introduction.html.j2" %}

- {% include "main/_manual_modal/_02_registration_and_log_in.html.j2" %} + {% include "_base/_modals/_manual/_02_registration_and_log_in.html.j2" %}

- {% include "main/_manual_modal/_03_dashboard.html.j2" %} + {% include "_base/_modals/_manual/_03_dashboard.html.j2" %}

- {% include "main/_manual_modal/_06_services.html.j2" %} + {% include "_base/_modals/_manual/_06_services.html.j2" %}

- {% include "main/_manual_modal/_07_a_closer_look_at_the_corpus_analysis.html.j2" %} + {% include "_base/_modals/_manual/_07_a_closer_look_at_the_corpus_analysis.html.j2" %}

- {% include "main/_manual_modal/_08_cqp_query_language.html.j2" %} + {% include "_base/_modals/_manual/_08_cqp_query_language.html.j2" %}

- {% include "main/_manual_modal/_09_query_builder.html.j2" %} + {% include "_base/_modals/_manual/_09_query_builder.html.j2" %}

- {% include "main/_manual_modal/_10_tagsets.html.j2" %} + {% include "_base/_modals/_manual/_10_tagsets.html.j2" %}