Skip to content

Commit

Permalink
Render HTML contained in messages (#379)
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 authored Nov 21, 2024
1 parent 6714b24 commit c4d6466
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 c4d6466

Please sign in to comment.