]> git.p6c8.net - pcdenotes.git/commitdiff
Modified templates
authorPatrick Canterino <patrick@patrick-canterino.de>
Sun, 23 Jan 2022 20:24:31 +0000 (21:24 +0100)
committerPatrick Canterino <patrick@patrick-canterino.de>
Sun, 23 Jan 2022 20:24:31 +0000 (21:24 +0100)
notes/templates/note.html [new file with mode: 0644]
notes/templates/note_base.html
notes/templates/note_detail.html
notes/templates/note_list.html

diff --git a/notes/templates/note.html b/notes/templates/note.html
new file mode 100644 (file)
index 0000000..0dbba54
--- /dev/null
@@ -0,0 +1,6 @@
+{% 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>
+</article>
\ No newline at end of file
index ca4eaaf7935052e11dba2fe8e7c02a7ee92c2b2c..58cf3dddfc78ef7a635c65bb3eeb22a466c0f4ad 100644 (file)
   <div id="content" class="container mt-5">
     {% block content %}{% endblock %}
   </div>
+
+  <div class="container-fluid p-5 bg-dark text-white text-center mt-5">
+    <div class="row">
+      <div class="col-sm">
+        <ul>
+          <li>Row 1</li>
+        </ul>
+      </div>
+      <div class="col-sm">
+        <ul>
+          <li>Row 2</li>
+        </ul>
+      </div>
+      <div class="col-sm">
+        <ul>
+          <li>Row 3</li>
+        </ul>
+      </div>
+    </div>
+  </div>
 </body>
 </html>
\ No newline at end of file
index 22ea0e068aa39df1e0ff6c29d146c2494e2de552..b097c554d625c215736a0b09f05d140124d182bb 100644 (file)
@@ -4,9 +4,5 @@
 {% block title %}Notes - {{ note.title }}{% endblock %}
 
 {% block content %}
-  <article>
-    <h2>{{ note.title }}</h2>
-    {{ note.content|linebreaksbr|markdownify }}
-    <p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
-  </article>
+{% include "note.html" %}
 {% endblock %}
\ No newline at end of file
index ffc256a1dd2550f55d14e51883fb244717303db8..e77bce06508c1a8954bfcda91d7f5fd8779da0b1 100644 (file)
@@ -1,20 +1,15 @@
 {% extends "note_base.html" %}
-{% load markdownify %}
 
 {% block title %}Notes{% endblock %}
 
 {% block content %}
   {% for note in notes_page %}
-  <article class="container mt-5">
-    <h2><a href="{{ note.get_absolute_url }}" class="link-dark">{{ note.title }}</a></h2>
-    <div>{{ note.content|linebreaksbr|markdownify }}</div>
-    <p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
-  </article>
+  {% include "note.html" %}
   {% empty %}
   <p>No notes</p>
   {% endfor %}
 
-  <ul class="pagination">
+  <ul class="pagination mt-5">
     {% for page in pages %}
       {% ifnotequal page.number page_number %}
         <li class="page-item"><a href="?page={{ page.number }}" class="page-link">{{ page.number }}</a></li>

patrick-canterino.de