aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-11-08 22:22:09 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2012-11-08 22:22:09 +0100
commit3e83f67dd0f3e16631207596f849e0977aa6d020 (patch)
tree4b1cf0262fba02fc97c284e12a621e73a5820087
parentc89a1548784a3d8049e1884207887f765edd5313 (diff)
downloadfamille-flask-3e83f67dd0f3e16631207596f849e0977aa6d020.tar.gz
Cosmetic changes
-rw-r--r--schema.sql4
-rw-r--r--templates/news/list.html2
-rw-r--r--templates/news/show.html6
3 files changed, 6 insertions, 6 deletions
diff --git a/schema.sql b/schema.sql
index cda7bc3..18ee95c 100644
--- a/schema.sql
+++ b/schema.sql
@@ -9,7 +9,7 @@ drop table if exists news;
create table news (
id integer primary key autoincrement,
title string not null,
- date string default (strftime('%Y-%m-%dT%H:%M:%S','now')),
+ date string default (strftime('%Y-%m-%dT%H:%M:%SZ','now')),
content string not null,
content_cache string not null,
user_id integer,
@@ -19,7 +19,7 @@ create table news (
drop table if exists comments;
create table comments (
id integer primary key autoincrement,
- date string default (strftime('%Y-%m-%dT%H:%M:%S','now')),
+ date string default (strftime('%Y-%m-%dT%H:%M:%SZ','now')),
content string not null,
content_cache string not null,
user_id integer,
diff --git a/templates/news/list.html b/templates/news/list.html
index b2bee8a..e95abe8 100644
--- a/templates/news/list.html
+++ b/templates/news/list.html
@@ -17,7 +17,7 @@
<p>Posté par <a href="{{url_for('view_user', user_id = news.user_id)}}">{{ news.user_name }}</a> le {{news.date|format_date}}</p>
</div>
<p class="comments">
- <a href="{{url_for('show_news', news_id = news.id)}}#comments">{{news.ncomments|pluralize}}</a>|
+ <a href="{{url_for('show_news', news_id = news.id)}}#comments">{{"Commentaire"|pluralize(news.ncomments)}}</a> |
<a href="{{url_for('show_news', news_id = news.id)}}#add">Ajouter un commentaire</a>
</p>
<div class="news_content">
diff --git a/templates/news/show.html b/templates/news/show.html
index dcc4e4a..4084450 100644
--- a/templates/news/show.html
+++ b/templates/news/show.html
@@ -4,9 +4,9 @@
<div class="quickview"/>
<h2>Détails</h2>
<ul>
- <li>Auteur : <a href="">{{news.name}}</a></li>
-<li>Date : {{news.date|format_date}} </li>
-<!--<li><a href="#comments">{{coments}}</a></li>-->
+ <li>Auteur : <a href="{{url_for('view_user', user_id=news.user_id)}}">{{news.user_name}}</a></li>
+ <li>Date : {{news.date|format_date}} </li>
+ <li><a href="#comments">{{"Commentaire"|pluralize(comments|count)}}</a></li>
</div>
<div class="news"/>