From: Patrick Canterino Date: Sun, 23 Jan 2022 20:08:50 +0000 (+0100) Subject: Fixed some things in the templates X-Git-Url: https://git.p6c8.net/pcdenotes.git/commitdiff_plain/ae03458e871011aea691e3d67b577f60362f481d Fixed some things in the templates --- 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