From 7eecc9b3ee32a51c0344cced1a28e3a24cdf3d99 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Thu, 4 Dec 2014 23:20:24 -0500 Subject: update show.html template --- static/main.css | 8 +++++ templates/news/show.html | 88 +++++++++++++++++++++++++++--------------------- 2 files changed, 58 insertions(+), 38 deletions(-) diff --git a/static/main.css b/static/main.css index 341018a..5dfa186 100644 --- a/static/main.css +++ b/static/main.css @@ -7,4 +7,12 @@ body { border: none !important; } +.comment + .comment{ + border-top: 1px solid rgba(0, 0, 0, 0.1); + padding-top: 1em; +} +.date { + color: rgba(0, 0, 0, 0.6); + font-size: 14px; +} \ No newline at end of file diff --git a/templates/news/show.html b/templates/news/show.html index 4084450..54a8645 100644 --- a/templates/news/show.html +++ b/templates/news/show.html @@ -1,42 +1,54 @@ {% extends 'layout.html' %} {% block content %} -
-

Détails

-
- -
-

{{news.title}}

- -
-{{news.content_cache|safe}} -
- -
-

Commentaires

-{% if not comments %} -Pas de commentaires pour l'instant. -{% endif %} -{% for comment in comments %} -

- Posté par {{comment.user_name}} le {{comment.date|format_date}} -

-
-{{comment.content_cache|safe}} -
-{% endfor %} - -

Ajouter un commentaire

- -
- - -

-
-
+ +
+
+

{{news.title}}

+

+ {{news.content_cache|safe}} +

+
+ +

Commentaires

+ {% if not comments %} + Pas de commentaires pour l'instant. + {% endif %} + {% for comment in comments %} +
+ + pomme + +
+

{{comment.date|format_date}}

+ {{comment.user_name}}

+ {{comment.content_cache|safe}} +
+
+ {% endfor %} + + +

Ajouter un commentaire

+ + +
+ +
+ + +
+ +
+
+
Détails
+
+ +
+
+
+ {% endblock %} -- cgit v1.2.3-70-g09d2