X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/083b6653f96bcbbea1328090e4775b055ab01c03..fe47fe6ff28499397c96779b13c8878c052e7e26:/notes/templates/note.html diff --git a/notes/templates/note.html b/notes/templates/note.html index 0dbba54..d965325 100644 --- a/notes/templates/note.html +++ b/notes/templates/note.html @@ -1,6 +1,7 @@ -{% load markdownify %} -<article class="container mt-5"> - <h2><a href="{{ note.get_absolute_url }}" class="link-dark">{{ note.title }}</a></h2> - <div class="mt-3">{{ note.content|linebreaksbr|markdownify }}</div> - <p class="fst-italic" style="font-size: smaller;">Published on {{ note.created_at|date:"Y-m-d, H:i" }}</p> +{% load notes_extras %} +<article{% if note.is_draft %} class="text-muted"{% endif %}> + <h2><a href="{{ note.get_absolute_url }}"{% if note.is_draft %} class="text-muted"{% endif %}>{{ note.title }}</a></h2> + {% if note.is_draft %}<p class="fw-bold">Status: Draft</p>{% endif %} + <div>{{ note.content|markdown|safe }}</div> + <p class="publication-date">Published on {{ note.publication_date|date:"Y-m-d, H:i" }}</p> </article> \ No newline at end of file