templates: display publication time
authorFrédéric Péters <fpeters@0d.be>
Sun, 29 Dec 2019 19:07:24 +0000 (20:07 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 30 Dec 2019 08:35:50 +0000 (09:35 +0100)
chloro/phyll/static/css/style.scss
chloro/phyll/templates/phyll/note_detail.html

index 3c78e42..b46a441 100644 (file)
@@ -89,6 +89,10 @@ main {
                        padding: 3px;
                }
        }
+       div.meta {
+               margin-top: 3em;
+               color: lighten($text-color, 40%);
+       }
 }
 
 .post-list {
index 425ee2d..4c919c2 100644 (file)
@@ -7,6 +7,8 @@
 <div>
 <h2>{{ object.title }}</h2>
 <div>{{ object.text|safe }}</div>
+
+<div class="meta">{{ object.creation_timestamp|date:"j E Y, H:i"|lower }}</div>
 </div>
 {% endblock %}