(refactor): Fixed format of the with/if blocks

This commit is contained in:
Blake Ridgway 2025-04-03 13:24:51 -05:00
parent 85c9ab1364
commit 7a88a01e0b
2 changed files with 10 additions and 10 deletions

View file

@ -15,11 +15,11 @@
</p> </p>
{% with messages = get_flashed_messages(with_categories=true) %} {% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %} {% if messages %}
{% for category, message in messages %} {% for category, message in messages %}
<div class="flash">{{ message }}</div> <div class="flash">{{ message }}</div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endwith %} {% endwith %}
{% if emails %} {% if emails %}

View file

@ -15,11 +15,11 @@
<a href="{{ url_for('logout') }}">Logout</a> <a href="{{ url_for('logout') }}">Logout</a>
</p> </p>
{% with messages = get_flashed_messages() %} {% with messages = get_flashed_messages() %}
{% if messages %} {% if messages %}
{% for message in messages %} {% for message in messages %}
<div class="flash">{{ message }}</div> <div class="flash">{{ message }}</div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endwith %} {% endwith %}
<form action="{{ url_for('send_update') }}" method="POST"> <form action="{{ url_for('send_update') }}" method="POST">