]> git.p6c8.net - pcdenotes.git/blob - notes/templates/note_list.html
bf278e16c38033b481f74afa057099d282ae7693
[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>{{ note.title }}</h2>
10 <p>ID: {{ note.id }}</p>
11 <div>{{ note.content|linebreaksbr|markdownify }}</div>
12 <p>Link: <a href="{{ note.get_absolute_url }}">View</a></p>
13 <p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
14 </article>
15 {% empty %}
16 <p>No notes</p>
17 {% endfor %}
18
19 <ul class="pagination">
20 {% for page in pages %}
21 {% ifnotequal page.number page_number %}
22 <li class="page-item"><a href="?page={{ page.number }}" class="page-link">{{ page.number }}</a></li>
23 {% else %}
24 <li class="page-item active"><span class="page-link">{{ page.number }}</span></li>
25 {% endifnotequal %}
26 {% endfor %}
27 </ul>
28
29 <p>Number of notes: {{ notes_count }}</p>
30 {% endblock %}

patrick-canterino.de