aboutsummaryrefslogtreecommitdiffstats
path: root/templates/news/list.html
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-11-07 01:27:36 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2012-11-07 01:27:36 +0100
commitdf25a48abd69292af55f3356a48a737da829cd20 (patch)
treefdb3ba7d659ee5dd379eb41b284bac6832a2d729 /templates/news/list.html
parente143cf83baf0c50da27251cee4f5e3a8929586a6 (diff)
downloadfamille-flask-df25a48abd69292af55f3356a48a737da829cd20.tar.gz
Add basic news feature: list, show, add
Diffstat (limited to 'templates/news/list.html')
-rw-r--r--templates/news/list.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/news/list.html b/templates/news/list.html
new file mode 100644
index 0000000..6ddf85a
--- /dev/null
+++ b/templates/news/list.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% block content %}
+<div class="news">
+ {% for news in news %}
+ <div class="news_head">
+ <h2><a href="{{ url_for('show_news', news_id = news.id)}}">
+ {{ news.title }}</a>
+ </h2>
+ <p>Posté par <a href="">{{ news.name }}</a> le {{ news.date }}</p>
+ </div>
+
+ <div class="news_content">
+ {{ news.content }}
+ </div>
+ {% endfor %}
+</div>
+<div style="clear:both"/>
+{% endblock %}