mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 23:10:15 +02:00
Use danger and error message tags to render correctly on admin site.
Closes #1305 (cherry picked from commit f17ebbede6d675f6308f41b3e72b78758642ef60)
This commit is contained in:
parent
2bd2c09c23
commit
abb5090d63
@ -167,7 +167,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||
|
||||
# Bootstrap messaging css workaround
|
||||
MESSAGE_TAGS = {
|
||||
messages.ERROR: 'danger'
|
||||
messages.ERROR: 'danger error'
|
||||
}
|
||||
|
||||
CACHES = {
|
||||
|
@ -13,7 +13,7 @@
|
||||
<i class="fas fa-check-circle"></i>
|
||||
{% elif message.level_tag == "warning" %}
|
||||
<i class="fas fa-exclamation-circle"></i>
|
||||
{% elif message.level_tag == "danger" %}
|
||||
{% elif "danger" in message.level_tag %}
|
||||
<i class="fas fa-exclamation-triangle"></i>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user