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/news_list.html | |
| parent | e143cf83baf0c50da27251cee4f5e3a8929586a6 (diff) | |
| download | famille-flask-df25a48abd69292af55f3356a48a737da829cd20.tar.gz | |
Add basic news feature: list, show, add
Diffstat (limited to 'templates/news/news_list.html')
| -rw-r--r-- | templates/news/news_list.html | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/templates/news/news_list.html b/templates/news/news_list.html deleted file mode 100644 index 2119a68..0000000 --- a/templates/news/news_list.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'base.html' %} - -{% block content %} -<div class="news"> - {% for news in news_list %} - <div class="news_head"> - <h2><a href="{% url news-details pk=news.id %}">{{ news.title }}</a></h2> - <!--div style="float:right"><a href="/home/edit/id/<?=$news['ident']?>">Modifier cette actualité</a></div--> - <p>Posté par <a href="/user/view/name/<?=$news['name']?>">{{ news.author.username }}</a> le {{ news.date }}</p> - </div> - - <p class="comments">{% with news.comment__count as comment_count %} - <a href="{% url news-details pk=news.id %}#comment">{{ comment_count }} commentaire{{comment_count|pluralize}}</a> | - <a href="{% url news-details pk=news.id %}#add">Ajouter un commentaire</a> - </p>{% endwith %} - - <div class="news_content"> - {{ news.text }} - </div> - {% endfor %} -</div> -<div style="clear:both"/> -{% endblock %} |
