From ae03458e871011aea691e3d67b577f60362f481d Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Sun, 23 Jan 2022 21:08:50 +0100 Subject: [PATCH 1/1] Fixed some things in the templates --- notes/templates/note_base.html | 4 +++- notes/templates/note_detail.html | 2 +- notes/templates/note_list.html | 6 +----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/notes/templates/note_base.html b/notes/templates/note_base.html index d85e875..ca4eaaf 100644 --- a/notes/templates/note_base.html +++ b/notes/templates/note_base.html @@ -15,6 +15,8 @@

Notes

-{% block content %}{% endblock %} +
+ {% block content %}{% endblock %} +
\ No newline at end of file diff --git a/notes/templates/note_detail.html b/notes/templates/note_detail.html index f760e4b..22ea0e0 100644 --- a/notes/templates/note_detail.html +++ b/notes/templates/note_detail.html @@ -4,7 +4,7 @@ {% block title %}Notes - {{ note.title }}{% endblock %} {% block content %} -
+

{{ note.title }}

{{ note.content|linebreaksbr|markdownify }}

Date: {{ note.created_at|date:"Y-m-d H:i" }}

diff --git a/notes/templates/note_list.html b/notes/templates/note_list.html index bf278e1..ffc256a 100644 --- a/notes/templates/note_list.html +++ b/notes/templates/note_list.html @@ -6,10 +6,8 @@ {% block content %} {% for note in notes_page %}
-

{{ note.title }}

-

ID: {{ note.id }}

+

{{ note.title }}

{{ note.content|linebreaksbr|markdownify }}
-

Link: View

Date: {{ note.created_at|date:"Y-m-d H:i" }}

{% empty %} @@ -25,6 +23,4 @@ {% endifnotequal %} {% endfor %} - -

Number of notes: {{ notes_count }}

{% endblock %} \ No newline at end of file -- 2.34.1