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/layout.html | 42 ++++++++++++------------- templates/login.html | 18 ++++++----- templates/news/list.html | 80 +++++++++++++++++++++++++++--------------------- 3 files changed, 74 insertions(+), 66 deletions(-) diff --git a/templates/layout.html b/templates/layout.html index fcce2da..07b101f 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -4,40 +4,36 @@ {% block title %}Site de la famille{% endblock %} + href="{{ url_for('static', filename = 'stylenew.css') }}" /> + {% block body %} -
-
-
-

{{session['user_name']}} - (Mon compte | - Se déconnecter)

-
- -
+ +
{% block content %}{% endblock %}
-
-
{% endblock body %} + src="{{ url_for('static', filename='jquery.min.js')}}"> + src="{{ url_for('static', filename='famille.js')}}">) + src="{{ url_for('static', filename='jquery.timeago.js')}}"> diff --git a/templates/login.html b/templates/login.html index d2bb8cb..3cad5c7 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,16 +1,18 @@ {% extends "layout.html" %} {%block title %}Connexion{% endblock %} {% block body %} -
+
+
Connexion -

- -
- -
-

-

+ + + + +
+ {% if error %}

Erreur: {{ error }}

{% endif %} +
+
{% endblock %} 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 %} - - {% 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.2.3-70-g09d2