2023-03-16 14:24:29 +01:00
|
|
|
|
{% extends "base.jinja2" %}
|
2023-02-10 14:15:21 +01:00
|
|
|
|
|
|
|
|
|
|
{% block title %}{{ d.strftime("%B %Y") }} – {{ app_name }}{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
2023-12-12 19:29:43 +01:00
|
|
|
|
<main>
|
2023-04-06 23:02:07 +02:00
|
|
|
|
<h1 id="firstHeading">{{ d.strftime("%B %Y") }}</h1>
|
2023-02-10 14:15:21 +01:00
|
|
|
|
|
2023-12-12 19:29:43 +01:00
|
|
|
|
<div class="inner-content">
|
|
|
|
|
|
{% if total_count > 0 %}
|
|
|
|
|
|
{% from "macros/nl.jinja2" import nl_list with context %}
|
|
|
|
|
|
{{ nl_list(notes, total_count=total_count, page_n=page_n, hl_calendar=d) }}
|
|
|
|
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
<p class="nl-placeholder">{{ T('notes-month-empty') }}</p>
|
|
|
|
|
|
{% endif %}
|
2023-04-06 23:02:07 +02:00
|
|
|
|
|
2023-12-12 19:29:43 +01:00
|
|
|
|
{% set past_year = advance_calendar(d, -2) %}
|
|
|
|
|
|
{% set past_month = advance_calendar(d, -1) %}
|
|
|
|
|
|
{% set next_month = advance_calendar(d, 1) %}
|
|
|
|
|
|
{% set next_year = advance_calendar(d, 2) %}
|
|
|
|
|
|
<div class="calendar-navigation">
|
|
|
|
|
|
<ul class="inline">
|
|
|
|
|
|
<li>« <a href="/calendar/{{ past_year.year }}/{{ past_year.month }}">{{ past_year.strftime("%B %Y") }}</a></li>
|
|
|
|
|
|
<li><a href="/calendar/{{ past_month.year }}/{{ past_month.month }}">{{ past_month.strftime("%B %Y") }}</a></li>
|
|
|
|
|
|
<li><strong>{{ d.strftime("%B %Y") }}</strong></li>
|
|
|
|
|
|
<li><a href="/calendar/{{ next_month.year }}/{{ next_month.month }}">{{ next_month.strftime("%B %Y") }}</a></li>
|
|
|
|
|
|
<li><a href="/calendar/{{ next_year.year }}/{{ next_year.month }}">{{ next_year.strftime("%B %Y") }}</a> »</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
2023-02-10 14:15:21 +01:00
|
|
|
|
|
2023-12-12 19:29:43 +01:00
|
|
|
|
<p>{{ T('back-to') }} <a href="/calendar">{{ T('calendar') }}</a></p>
|
2023-05-17 20:52:33 +02:00
|
|
|
|
</div>
|
2023-12-12 19:29:43 +01:00
|
|
|
|
</main>
|
|
|
|
|
|
{% endblock %}
|
2023-05-17 20:52:33 +02:00
|
|
|
|
|
2023-12-12 19:29:43 +01:00
|
|
|
|
{% block toc %}
|
|
|
|
|
|
<nav class="toc">
|
|
|
|
|
|
<h3>{{ d.year }}</h3>
|
2023-02-10 14:15:21 +01:00
|
|
|
|
|
2023-12-12 19:29:43 +01:00
|
|
|
|
<ul>
|
|
|
|
|
|
{#% for i in range(1, 13) %}
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href="/calendar/{{ d.year }}/{{ i }}">{{ nd.strftime("%B") }}</a>
|
|
|
|
|
|
<strong>({{ toc[i] }})</strong>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
{% endfor %#}
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</nav>
|
2023-02-10 14:15:21 +01:00
|
|
|
|
{% endblock %}
|