templates: cleaned up whitespaces

This commit is contained in:
2022-08-02 23:07:43 +02:00
parent 9f7bce2be0
commit d2ad7b3125
11 changed files with 117 additions and 103 deletions

View File

@@ -1,29 +1,29 @@
{% extends "template.html" %}
{% extends "template.html" -%}
{% block content %}
{% block content -%}
<div class="container">
<div class="archive">
<h1>User: {{ name }}</h1><br>
{% set ns = namespace(last_year="") %}
{% for entry in entries %}
{% if entry.item.date != ns.last_year %}
{% if ns.last_year != "" %}
{% set ns = namespace(last_year="") -%}
{% for entry in entries -%}
{% if entry.item.date != ns.last_year -%}
{% if ns.last_year != "" -%}
</ul>
{% endif %}
{% endif -%}
<h2> {{ entry.item.date }} </h2>
<ul>
{% endif %}
{% set ns.last_year = entry.item.date %}
{% endif -%}
{% set ns.last_year = entry.item.date -%}
<li>
{{ entry.item.name }}
<a href="{{ url_for('entry', ident=entry.id) }}">
{{ r_to_star(entry.rating) }} by {{ entry.user.name }}
</a>
</li><br>
{% endfor %}
{% autoescape off %}
{% endfor -%}
{% autoescape off -%}
{{ content_string }}
{% endautoescape %}
{% endautoescape -%}
</div>
</div>
{% endblock %}
{% endblock -%}