aboutsummaryrefslogtreecommitdiffstats
path: root/templates/news
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-04-01 21:53:11 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2015-04-01 21:53:11 -0400
commit0471bbc5819861405c1eb1be3bfa5d51002db513 (patch)
tree879a522b25922eb4e3f6d60243424b381e271716 /templates/news
parentacd73bdf5f351445b4b66c28dd0e3a8883d4face (diff)
downloadfamille-flask-0471bbc5819861405c1eb1be3bfa5d51002db513.tar.gz
Fix: show the comment editing controls to the comment author (not the news author)
Diffstat (limited to 'templates/news')
-rw-r--r--templates/news/show.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/news/show.html b/templates/news/show.html
index 8667f5d..905463d 100644
--- a/templates/news/show.html
+++ b/templates/news/show.html
@@ -22,7 +22,7 @@
</div>
<div class="media-body" style="width:100%">
<h4 class="media-heading"><p class="pull-right date">
- {% if news.user_name==session.user_name %}
+ {% if comment.user_id==session.user_id %}
<a class="edit" href="#">Modifier</a>
{% endif %}
{{comment.date|format_date}}
@@ -31,7 +31,7 @@
<div class="comment-content">
{{comment.content_cache|safe}}
</div>
- {% if news.user_name==session.user_name %}
+ {% if comment.user_id==session.user_id %}
<form class="comment-source" data-id="{{comment.id}}">
<div class="form-group">
<textarea name="content" class="form-control" rows="3">{{comment.content}}</textarea>