From f5ac15cec41c09b9041ca4244c95293b14796a6f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 27 Jun 2020 14:52:05 +0200 Subject: Alert messages are now placed in the navbar. --- newspipe/static/css/custom.css | 8 ++++++++ newspipe/templates/layout.html | 37 +++++++++++++++++-------------------- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/newspipe/static/css/custom.css b/newspipe/static/css/custom.css index 8bd1e92c..0e1d5a9b 100644 --- a/newspipe/static/css/custom.css +++ b/newspipe/static/css/custom.css @@ -87,12 +87,20 @@ a { display: inline; } +.alert { + margin-bottom: 1px; + height: 30px; + line-height: 30px; + padding: 0px 15px; +} + .alert-message { position: relative; display: block; z-index: 1001; } + /*customization for Flask-Paginate*/ .pagination-page-info { display: inline; diff --git a/newspipe/templates/layout.html b/newspipe/templates/layout.html index 115a1cd9..f24ab854 100644 --- a/newspipe/templates/layout.html +++ b/newspipe/templates/layout.html @@ -28,6 +28,23 @@ {% block menu_links %} {% endblock %} -
- -
- {% block messages %} - {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} -
-
- {% for category, message in messages %} -
- - {{ message }} -
- {% endfor %} -
-
- {% endif %} - {% endwith %} - {% endblock %} -
{% block content %}{% endblock %} -- cgit