From b72917e5f9cab2c0136d060358ab1991b4f7b898 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Sun, 27 Apr 2014 22:37:27 -0400 Subject: wip: c'est complètement cassé pour l'instant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/news/list.html | 80 +++++++++++++++++++++++++++--------------------- 1 file changed, 45 insertions(+), 35 deletions(-) (limited to 'templates/news') diff --git a/templates/news/list.html b/templates/news/list.html index d25715b..af6dcb2 100644 --- a/templates/news/list.html +++ b/templates/news/list.html @@ -1,54 +1,64 @@ {% extends 'layout.html' %} {% block content %} -
- Ajouter une actualité + + + + +
+
+ {% for news in news %} +
+

{{ news.title }}

+ + {% if news.user_name==session.user_name %} + + {% endif %} + +

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

+ +
+ +

+ {{"Commentaire"|pluralize(news.ncomments)}} | + Ajouter un commentaire +

+ +
+

{{ news.content_cache|safe }}

+
+ {% endfor %} +
-
-

Dernières visites

- +
+

Dernières visites

+ +
{% for user in users %} - - + + {% endfor %} -
{{user.user_name}}{{user.last_seen|format_ago('%a %d %b à %Hh%M')|safe}}{{user.user_name}}{{user.last_seen|format_ago('%a %d %b à %Hh%M')|safe}}
+ -

Derniers commentaires

-
    +

    Derniers commentaires

    +
      {% for comment in comments %}
    • {{comment.user_name}} - {{comment.date|format_ago('%a %d %b à %Hh%M')|safe}}
      - {{comment.content_cache|shortify|safe}} […] + {{comment.date|format_ago('%a %d %b à %Hh%M')|safe}}
      + {{comment.content_cache|shortify|safe}} […]
    • {% else %} Pas de commentaires. {% endfor %} -
    +
-
- {% for news in news %} -
-

{{ news.title }} -

- {% if news.user_name==session.user_name %} -
- Modifier cette actualité -
- {% endif %} -

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

-
-

- {{"Commentaire"|pluralize(news.ncomments)}} | - Ajouter un commentaire -

-
-

{{ news.content_cache|safe }}

-
- {% endfor %} -
-
+ {% endblock %} -- cgit v1.3