From 9ab593bcd52fcbe87f1be463ca5f09a757d1128f Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Thu, 8 Nov 2012 00:44:52 +0100 Subject: Add date formatting filter --- templates/news/list.html | 2 +- templates/news/show.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'templates') 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 @@

{{ news.title }}

-

Posté par {{ news.name }} le {{ news.date }}

+

Posté par {{ news.name }} le {{news.date|format_date}}

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 @@

Détails

@@ -19,7 +19,9 @@

Commentaires

{% for comment in comments %} -

Posté par {{comment.name}} le {{comment.date}}

+

+ Posté par {{comment.name}} le {{comment.date|format_date}} +

{{comment.content|safe}}
-- cgit v1.2.3-70-g09d2