Skip to content

Commit

Permalink
Render HTML contained in messages
Browse files Browse the repository at this point in the history
For some messages it is useful to render the HTML such as for example if
you have multiple messages and want to display them as list.
  • Loading branch information
kofrezo committed Sep 11, 2024
1 parent c36baa7 commit 83792d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serveradmin/common/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
{% if messages %}
{% for message in messages %}
<div class="alert {{ message.level_tag|bootstrap_alert }} alert-dismissible fade show" role="alert">
<strong>{{ message }}</strong>
<strong>{{ message|safe }}</strong>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
Expand Down

0 comments on commit 83792d4

Please sign in to comment.