Fix alert rendering
parent
1309cecb21
commit
f45805f172
|
@ -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">×</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 %}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue