]> git.p6c8.net - pcdenotes.git/blobdiff - notes/templates/note_list.html
Made footer stay at the bottom
[pcdenotes.git] / notes / templates / note_list.html
index bf278e16c38033b481f74afa057099d282ae7693..e77bce06508c1a8954bfcda91d7f5fd8779da0b1 100644 (file)
@@ -1,22 +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>{{ note.title }}</h2>
-    <p>ID: {{ note.id }}</p>
-    <div>{{ note.content|linebreaksbr|markdownify }}</div>
-    <p>Link: <a href="{{ note.get_absolute_url }}">View</a></p>
-    <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>
@@ -25,6 +18,4 @@
       {% endifnotequal %}
     {% endfor %}
   </ul>
-
-  <p>Number of notes: {{ notes_count }}</p>
 {% endblock %}
\ No newline at end of file

patrick-canterino.de