aboutsummaryrefslogtreecommitdiffstats
path: root/templates/news
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-11-07 17:37:06 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2012-11-07 17:37:06 +0100
commit1225be7b79ed98873a51729635e4b18f622da3da (patch)
treec24ffbcce1239fcfe5d66bd1908f7a185573b675 /templates/news
parenta3a62275ac16c4a887c6d054508d26d04a7d8558 (diff)
downloadfamille-flask-1225be7b79ed98873a51729635e4b18f622da3da.tar.gz
Add comments feature: show list, add
Diffstat (limited to 'templates/news')
-rw-r--r--templates/news/show.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/news/show.html b/templates/news/show.html
index da188fe..c7795cd 100644
--- a/templates/news/show.html
+++ b/templates/news/show.html
@@ -17,23 +17,21 @@
</div>
<hr/>
-<!--
<h2 id="comments">Commentaires</h2>
{% for comment in comments %}
-<h3 class="comment">Posté par <a href="/user/view/name/<?=$comment['name']?>">{{comment.author}}</a> le {{comment.date}} </h3>
+<h3 class="comment">Posté par <a href="">{{comment.name}}</a> le {{comment.date}} </h3>
<div class="comment_content"/>
-{{comment.text}}
+{{comment.content}}
</div>
{% endfor %}
<h2 id="add">Ajouter un commentaire</h2>
-<form class="comment_add" method="post" action="/home/view/id/<?=$this->news['id']?>/#add">
+<form class="comment_add" method="post" action="{{url_for('show_news', news_id=news.id)}}">
<textarea name="content" cols="90" rows="10">
</textarea>
<p class="submit"><input type="submit" value="Ajouter"/></p>
--->
</div>
<div style="clear:both"/>
{% endblock %}