fix: only render message with p tag if message exist
This commit is contained in:
parent
9902f36812
commit
99a4116725
1 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,9 @@ html, body {
|
|||
</h5>
|
||||
<div class="page-card-body">
|
||||
{% block message_body %}
|
||||
<p>{{ message or "" }}</p>
|
||||
{% if message %}
|
||||
<p>{{ message }}</p>
|
||||
{% endif %}
|
||||
{% if primary_action %}
|
||||
<div><a href='{{ primary_action or "/" }}' class='btn btn-primary btn-sm btn-block'>
|
||||
{{ primary_label or _("Home") }}</a></div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue