2023-03-16 14:24:29 +01:00
|
|
|
{% extends "base.jinja2" %}
|
2021-02-23 22:54:08 +01:00
|
|
|
|
|
|
|
|
{% block content %}
|
2023-04-06 23:02:07 +02:00
|
|
|
<article>
|
|
|
|
|
<h1>Notes by date</h1>
|
2021-02-23 22:54:08 +01:00
|
|
|
|
2023-04-06 23:02:07 +02:00
|
|
|
<p class="nl-pagination">Showing results <strong>{{ page_n * 20 - 19 }}</strong> to <strong>{{ min(page_n * 20, total_count) }}</strong> of <strong>{{ total_count }}</strong> total.</p>
|
2021-02-23 22:54:08 +01:00
|
|
|
|
2023-04-06 23:02:07 +02:00
|
|
|
<ul class="nl-list">
|
|
|
|
|
{% if page_n > 1 %}
|
|
|
|
|
<li class="nl-prev"><a href="/p/most_recent/{{ page_n - 1 }}">« Previous page</a></li>
|
2023-02-10 14:15:21 +01:00
|
|
|
{% endif %}
|
2023-04-06 23:02:07 +02:00
|
|
|
{% for n in notes %}
|
|
|
|
|
<li>
|
|
|
|
|
<a href="{{ n.get_url() }}" class="nl-title">{{ n.title }}</a>
|
|
|
|
|
<p class="nl-desc">{{ n.short_desc() }}</p>
|
|
|
|
|
{% if n.tags %}
|
|
|
|
|
<p class="nl-tags">
|
|
|
|
|
<span class="material-icons">tag</span>
|
|
|
|
|
{{ T('tags') }}:
|
|
|
|
|
{% for tag in n.tags %}
|
|
|
|
|
{% set tn = tag.name %}
|
|
|
|
|
<a href="/tags/{{ tn }}/" class="nl-tag">#{{ tn }}</a>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if n.calendar %}
|
|
|
|
|
<p class="nl-calendar">
|
|
|
|
|
<span class="material-icons">calendar_today</span>
|
|
|
|
|
<a href="/calendar/{{ n.calendar.year }}/{{ n.calendar.month }}">
|
|
|
|
|
<time datetime="{{ n.calendar.isoformat() }}">{{ n.calendar.strftime('%B %-d, %Y') }}</time>
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% if page_n <= total_count // 20 %}
|
|
|
|
|
<li class="nl-next"><a href="/p/most_recent/{{ page_n + 1 }}/">Next page »</a></li>
|
2023-02-10 14:15:21 +01:00
|
|
|
{% endif %}
|
2023-04-06 23:02:07 +02:00
|
|
|
</ul>
|
|
|
|
|
</article>
|
2021-02-23 22:54:08 +01:00
|
|
|
{% endblock %}
|