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 3c78e427de302538e146d93ef13853c4e51c16a6..b46a441be72329c73314be02580e4135cd66c89f 100644 (file)
@@ -89,6 +89,10 @@ main {
                        padding: 3px;
                }
        }
+       div.meta {
+               margin-top: 3em;
+               color: lighten($text-color, 40%);
+       }
 }
 
 .post-list {
index 425ee2da38e13dbcf0779fd472c2e97691f53622..4c919c210dc846e07a21189e81fc3e0dee33c907 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 %}