]> git.p6c8.net - pcdenotes.git/blob - notes/templates/note_list.html
Fixed some things in the templates
[pcdenotes.git] / notes / templates / note_list.html
1 {% extends "note_base.html" %}
2 {% load markdownify %}
3
4 {% block title %}Notes{% endblock %}
5
6 {% block content %}
7 {% for note in notes_page %}
8 <article class="container mt-5">
9 <h2><a href="{{ note.get_absolute_url }}" class="link-dark">{{ note.title }}</a></h2>
10 <div>{{ note.content|linebreaksbr|markdownify }}</div>
11 <p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
12 </article>
13 {% empty %}
14 <p>No notes</p>
15 {% endfor %}
16
17 <ul class="pagination">
18 {% for page in pages %}
19 {% ifnotequal page.number page_number %}
20 <li class="page-item"><a href="?page={{ page.number }}" class="page-link">{{ page.number }}</a></li>
21 {% else %}
22 <li class="page-item active"><span class="page-link">{{ page.number }}</span></li>
23 {% endifnotequal %}
24 {% endfor %}
25 </ul>
26 {% endblock %}

patrick-canterino.de