diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-11-07 01:27:36 +0100 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-11-07 01:27:36 +0100 |
| commit | df25a48abd69292af55f3356a48a737da829cd20 (patch) | |
| tree | fdb3ba7d659ee5dd379eb41b284bac6832a2d729 /templates/news/list.html | |
| parent | e143cf83baf0c50da27251cee4f5e3a8929586a6 (diff) | |
| download | famille-flask-df25a48abd69292af55f3356a48a737da829cd20.tar.gz | |
Add basic news feature: list, show, add
Diffstat (limited to 'templates/news/list.html')
| -rw-r--r-- | templates/news/list.html | 19 |
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 %} |
