Blame view

app/templates/flash-messages.html 564 Bytes
a49732b5   hitier   Add current user ...
1
2
  {% with messages = get_flashed_messages(with_categories=true) %}
  {% if messages %}
a86a1b93   hitier   Set some margins
3
  <div id="messages" class="mt-1">
a49732b5   hitier   Add current user ...
4
    {% for level, message in messages %}
2816e773   hitier   Set flash with bo...
5
6
7
8
9
10
11
12
13
    {% if level == 'message' %}
    <div class="alert alert-primary}" role="alert">{{ message }}
    {% else %}
    <div class="alert alert-{{level}}" role="alert">{{ message }}
    {% endif %}
    <button aria-label="Close" class="close" data-dismiss="alert" type="button">
      <span aria-hidden="true">&times;</span>
    </button>
    </div>
a49732b5   hitier   Add current user ...
14
15
16
    {% endfor %}
  </div>
  {% endif %}
a86a1b93   hitier   Set some margins
17
  {% endwith %}