add details and tell jinja that variables have kept themselves safe

master
justcool393 2022-10-11 03:43:47 -07:00
parent ac011a77b9
commit ec610e99c5
1 changed files with 7 additions and 3 deletions

View File

@ -10,12 +10,16 @@
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-10 col-md-5"> <div class="col-10 col-md-5">
<div class="text-center px-3 my-8"> <div class="text-center px-3 my-8">
{% if img %} {% if img -%}
<img alt=":#{{img}}:" loading="lazy" src="/e/{{img}}.webp"> <img alt=":#{{img}}:" loading="lazy" src="/e/{{img}}.webp">
{% endif %} {%- endif %}
<pre></pre> <pre></pre>
<h1 class="h5">{{code}} {{title}}</h1> <h1 class="h5">{{code}} {{title}}</h1>
<p class="text-muted mb-5">{{msg}}</p> <p class="text-muted mb-5">{{msg|safe}}</p>
{% if details -%}
<blockquote class="error-details">{{details|safe}}</blockquote>
{%- endif %}
<div><a href="/" class="btn btn-primary">Go to frontpage</a></div>
</div> </div>
</div> </div>
</div> </div>