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 @@