salvi/templates/calendar.jinja2

36 lines
No EOL
932 B
Django/Jinja
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.jinja2" %}
{% block title %}Calendar {{ app_name }}{% endblock %}
{% block content %}
<main>
<h1 id="firstHeading">{{ T('calendar') }}</h1>
<div class="inner-content">
<ul>
{% for year in range(till_year, from_year-1, -1) %}
<li>
<strong>{% if year == now.year %}<mark>{% endif %}{{ year }}{% if year == now.year %}</mark>{% endif %}</strong>:
<ul class="inline">
{% for month in range(1, 13) %}
<li><a href="/calendar/{{year}}/{{month}}">{{ year }}.{{ month }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
<p>
Show more years:
<ul class="inline">
<li>
<a href="?till_year={{ till_year + 15 }}">in the future</a>
</li>
<li>
<a href="?from_year={{ from_year - 15 }}">in the past</a>
</li>
</ul>
</p>
</div>
</main>
{% endblock %}