diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/news/show.html | 4 |
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> |
