This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/passbook/core/templates/partials/messages.html

25 lines
916 B
HTML
Raw Normal View History

2018-11-16 08:10:35 +00:00
{% if messages %}
2020-02-19 20:03:39 +00:00
<ul class="pf-c-alert-group pf-m-toast">
{% for msg in messages %}
<li class="pf-c-alert-group__item">
<div class="pf-c-alert pf-m-{{ msg.level_tag }} {% if msg.level_tag == 'error' %}pf-m-danger{% endif %}">
2020-02-19 20:03:39 +00:00
<div class="pf-c-alert__icon">
{% if msg.level_tag == 'error' %}
<i class="fas fa-exclamation-circle"></i>
2020-02-19 20:03:39 +00:00
{% elif msg.level_tag == 'warning' %}
<i class="fas fa-exclamation-triangle"></i>
2020-02-19 20:03:39 +00:00
{% elif msg.level_tag == 'success' %}
<i class="fas fa-check-circle"></i>
2020-02-19 20:03:39 +00:00
{% elif msg.level_tag == 'info' %}
<i class="fas fa-info"></i>
2020-02-19 20:03:39 +00:00
{% endif %}
</div>
<h4 class="pf-c-alert__title">
2020-02-19 20:03:39 +00:00
{{ msg.message|safe }}
</h4>
2020-02-19 20:03:39 +00:00
</div>
</li>
{% endfor %}
</ul>
2018-11-16 08:10:35 +00:00
{% endif %}