diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-26 14:16:12 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-26 14:16:12 +0000 |
| commit | 6005baea467109e906d782021254c6c3134fcb18 (patch) | |
| tree | 7a0dfb986fcd997948ba5590331205f9c0dd79fd /app/templates/base.html | |
| parent | Delete annotations when the admin deletes a task (diff) | |
| download | AnnotateChange-6005baea467109e906d782021254c6c3134fcb18.tar.gz AnnotateChange-6005baea467109e906d782021254c6c3134fcb18.zip | |
Add message flashing formatting
Diffstat (limited to 'app/templates/base.html')
| -rw-r--r-- | app/templates/base.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/app/templates/base.html b/app/templates/base.html index 98eddf2..9812c5f 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -1,5 +1,10 @@ {% extends 'bootstrap/base.html' %} +{% block styles %} +{{ super() }} +<link rel="stylesheet" href="{{ url_for('static', filename='base.css') }}"> +{% endblock %} + {% block title %} {% if title %}{{ title }} -- AnnotateChange{% else %}Welcome to AnnotateChange{% endif %} {% endblock %} @@ -38,11 +43,11 @@ {% block content %} <div class="container"> - {% with messages = get_flashed_messages() %} + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} - <ul> - {% for message in messages %} - <li>{{ message}}</li> + <ul class="flashes"> + {% for category, message in messages %} + <li class="{{ category }}">{{ message}}</li> {% endfor %} </ul> {% endif %} |
