[theme] add '(last updated on xxx)' in article timestamps when available

Sat, 19 Mar 2016 00:50:44 +0100

author
David Douard <david.douard@logilab.fr>
date
Sat, 19 Mar 2016 00:50:44 +0100
changeset 42
3c30fc0f8ce0
parent 41
376692051823
child 43
4c3a05ba94de

[theme] add '(last updated on xxx)' in article timestamps when available

theme/static/css/lamboz.css file | annotate | diff | comparison | revisions
theme/templates/article.html file | annotate | diff | comparison | revisions
--- a/theme/static/css/lamboz.css	Sat Mar 19 00:49:24 2016 +0100
+++ b/theme/static/css/lamboz.css	Sat Mar 19 00:50:44 2016 +0100
@@ -93,6 +93,11 @@
   margin-bottom: 0.5em;
 }
 
+.read-more SPAN {
+    font-size: 80%;
+    font-style: italic;
+}
+
 ul.tag-list {
   list-style-type: none;
   margin:0px;
--- a/theme/templates/article.html	Sat Mar 19 00:49:24 2016 +0100
+++ b/theme/templates/article.html	Sat Mar 19 00:50:44 2016 +0100
@@ -15,7 +15,7 @@
 {% block content %}
 <div class="content-article">
     <header class="header-article">
-        <div class="read-more">Posted on {{ article.locale_date}}</div>
+        <div class="read-more">Posted on {{ article.locale_date}}{% if article.locale_modified and article.locale_modified != article.locale_date %} <span>(last updated on {{ article.locale_modified }})</span> {% endif %}</div>
  
    </header>
     <section class='article'>

mercurial