Fix alert rendering

master
informatic 2017-10-14 00:42:54 +02:00
parent 1309cecb21
commit f45805f172
2 changed files with 9 additions and 7 deletions

View File

@ -24,12 +24,14 @@
{% with messages = get_flashed_messages(with_categories=true) %}
<!-- Categories: success (green), info (blue), warning (yellow), danger (red) -->
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<!-- <strong>Title</strong> --> {{ message }}
</div>
{% endfor %}
<div class="container">
{% for category, message in messages %}
{% set category = 'info' if category == 'message' else category %}
<div class="alert alert-{{ category }} alert-dismissible" role="alert">
<!-- <strong>Title</strong> --> {{ message }}
</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}

View File

@ -7,7 +7,7 @@
Hey, <b>{{ current_user.gecos }}</b>!
<small class="pull-right"><a href="/logout" class="btn btn-default btn-sm">Logout</a></small>
</h2>
<h3>Approved applications</h3>
<h3>Authorized applications</h3>
<table class="table table-striped">
<thead>
<tr>