aboutsummaryrefslogtreecommitdiffstats
path: root/templates/news
diff options
context:
space:
mode:
Diffstat (limited to 'templates/news')
-rw-r--r--templates/news/list.html2
-rw-r--r--templates/news/show.html6
2 files changed, 5 insertions, 3 deletions
diff --git a/templates/news/list.html b/templates/news/list.html
index ecb0714..ddbe1ab 100644
--- a/templates/news/list.html
+++ b/templates/news/list.html
@@ -7,7 +7,7 @@
<h2><a href="{{ url_for('show_news', news_id = news.id)}}">
{{ news.title }}</a>
</h2>
- <p>Posté par <a href="">{{ news.name }}</a> le {{ news.date }}</p>
+ <p>Posté par <a href="">{{ news.name }}</a> le {{news.date|format_date}}</p>
</div>
<div class="news_content">
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>