Merge branch 'cherry-pick-f17ebbed' into 'v2.9.x'

Use danger and error message tags to render correctly on admin site.

Closes #1305

See merge request allianceauth/allianceauth!1366
This commit is contained in:
Ariel Rin 2021-11-20 01:27:26 +00:00
commit fabf64b838
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# Bootstrap messaging css workaround # Bootstrap messaging css workaround
MESSAGE_TAGS = { MESSAGE_TAGS = {
messages.ERROR: 'danger' messages.ERROR: 'danger error'
} }
CACHES = { CACHES = {

View File

@ -13,7 +13,7 @@
<i class="fas fa-check-circle"></i> <i class="fas fa-check-circle"></i>
{% elif message.level_tag == "warning" %} {% elif message.level_tag == "warning" %}
<i class="fas fa-exclamation-circle"></i> <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> <i class="fas fa-exclamation-triangle"></i>
{% endif %} {% endif %}
</div> </div>