aboutsummaryrefslogtreecommitdiffstats
path: root/templates/news/show.html
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-11-08 00:44:52 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2012-11-08 00:44:52 +0100
commit9ab593bcd52fcbe87f1be463ca5f09a757d1128f (patch)
tree6e792c98452715e5409af3afc4a23c206f362130 /templates/news/show.html
parent1ab9d17135c87253d9e1531cc31cf1b4ac94eceb (diff)
downloadfamille-flask-9ab593bcd52fcbe87f1be463ca5f09a757d1128f.tar.gz
Add date formatting filter
Diffstat (limited to 'templates/news/show.html')
-rw-r--r--templates/news/show.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/news/show.html b/templates/news/show.html
index 35c510f..411cdfc 100644
--- a/templates/news/show.html
+++ b/templates/news/show.html
@@ -5,7 +5,7 @@
<h2>Détails</h2>
<ul>
<li>Auteur : <a href="">{{news.name}}</a></li>
-<li>Date : {{news.date}} </li>
+<li>Date : {{news.date|format_date}} </li>
<!--<li><a href="#comments">{{coments}}</a></li>-->
</div>
@@ -19,7 +19,9 @@
<hr/>
<h2 id="comments">Commentaires</h2>
{% for comment in comments %}
-<h3 class="comment">Posté par <a href="">{{comment.name}}</a> le {{comment.date}} </h3>
+<h3 class="comment">
+ Posté par <a href="">{{comment.name}}</a> le {{comment.date|format_date}}
+</h3>
<div class="comment_content"/>
{{comment.content|safe}}
</div>