From ee38ff5eec83ee81d518125d2894c631da45c3f9 Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Sun, 23 Jan 2022 15:04:54 +0100 Subject: [PATCH] Added basic bootstrap layout --- notes/templates/note_base.html | 6 ++++++ notes/templates/note_detail.html | 12 ++++++------ notes/templates/note_list.html | 13 +++++++------ 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/notes/templates/note_base.html b/notes/templates/note_base.html index 93f3dc7..d85e875 100644 --- a/notes/templates/note_base.html +++ b/notes/templates/note_base.html @@ -6,9 +6,15 @@ {% block title %}{% endblock %} + + +
+

Notes

+
+ {% block content %}{% endblock %} \ No newline at end of file diff --git a/notes/templates/note_detail.html b/notes/templates/note_detail.html index 1fdfae9..f760e4b 100644 --- a/notes/templates/note_detail.html +++ b/notes/templates/note_detail.html @@ -1,12 +1,12 @@ {% extends "note_base.html" %} {% load markdownify %} -{% block title %}{{ note.title }}{% endblock %} +{% block title %}Notes - {{ note.title }}{% endblock %} {% block content %} -

{{ note.title }}

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

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

+
+

{{ note.title }}

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

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

+
{% endblock %} \ No newline at end of file diff --git a/notes/templates/note_list.html b/notes/templates/note_list.html index 9f1554c..e996fb2 100644 --- a/notes/templates/note_list.html +++ b/notes/templates/note_list.html @@ -4,16 +4,17 @@ {% block title %}Notes{% endblock %} {% block content %} -

Notes

- {% for note in notes %} + {% for note in notes %} +

{{ note.title }}

ID: {{ note.id }}

{{ note.content|linebreaksbr|markdownify }}

Link: View

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

- {% empty %} -

No notes

- {% endfor %} +
+ {% empty %} +

No notes

+ {% endfor %} -

Number of notes: {{ notes_count }}

+

Number of notes: {{ notes_count }}

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