]> git.p6c8.net - pcdenotes.git/blob - notes/templates/note_list.html
Use template inheritance
[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 <h1>Notes</h1>
8 {% for note in notes %}
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 {% empty %}
15 <p>No notes</p>
16 {% endfor %}
17
18 <p>Number of notes: {{ notes_count }}</p>
19 {% endblock %}

patrick-canterino.de