From 9c36ed3cc8a7815e1936a00fdfd6cdc39bbbdfe6 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 28 Oct 2020 15:34:12 +0100 Subject: [PATCH] Some finetuning --- web/app/admin/views.py | 4 +- .../{_constants.html.j2 => _colors.html.j2} | 2 +- web/app/templates/nopaque.html.j2 | 74 +++++++++---------- .../services/corpus_analysis.html.j2 | 6 +- web/app/templates/services/file-setup.html.j2 | 8 +- web/app/templates/services/nlp.html.j2 | 8 +- web/app/templates/services/ocr.html.j2 | 8 +- 7 files changed, 55 insertions(+), 55 deletions(-) rename web/app/templates/{_constants.html.j2 => _colors.html.j2} (94%) diff --git a/web/app/admin/views.py b/web/app/admin/views.py index ce16c390..d06c856a 100644 --- a/web/app/admin/views.py +++ b/web/app/admin/views.py @@ -27,7 +27,7 @@ def users(): @admin_required def user(user_id): user = User.query.get_or_404(user_id) - return render_template('admin/user.html.j2', title='Edit user', user=user) + return render_template('admin/user.html.j2', title='User', user=user) @admin.route('/users//delete') @@ -36,7 +36,7 @@ def user(user_id): def delete_user(user_id): settings_tasks.delete_user(user_id) flash('User has been deleted!') - return redirect(url_for('admin.index')) + return redirect(url_for('.users')) @admin.route('/users//edit_general_settings', diff --git a/web/app/templates/_constants.html.j2 b/web/app/templates/_colors.html.j2 similarity index 94% rename from web/app/templates/_constants.html.j2 rename to web/app/templates/_colors.html.j2 index a14fd135..be667210 100644 --- a/web/app/templates/_constants.html.j2 +++ b/web/app/templates/_colors.html.j2 @@ -1,4 +1,4 @@ -{% set COLORS = {'primary': '#00426f', +{% set colors = {'primary': '#00426f', 'secondary': '#1A5C89', 'footer': '#b1b3b4', 'corpus_analysis': '#aa9cc9', diff --git a/web/app/templates/nopaque.html.j2 b/web/app/templates/nopaque.html.j2 index 7998e2d6..8b49e1a8 100644 --- a/web/app/templates/nopaque.html.j2 +++ b/web/app/templates/nopaque.html.j2 @@ -1,5 +1,5 @@ {% extends "materialize/base.html.j2" %} -{% from '_constants.html.j2' import COLORS %} +{% from '_colors.html.j2' import colors %} {% block html_attribs %} lang="en"{% endblock html_attribs %} @@ -23,46 +23,46 @@