summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankitjavalkar2020-11-06 18:36:04 +0530
committerankitjavalkar2020-11-06 18:36:04 +0530
commit11d1586a53c27d4e58cde9e57d4eac3df63b639f (patch)
tree2e0a7849e0128bfcdd7a204062487f84e4b869fb
parent1ad9f3176c2df25df1f8fae601eef657e39f8b46 (diff)
downloadonline_test-11d1586a53c27d4e58cde9e57d4eac3df63b639f.tar.gz
online_test-11d1586a53c27d4e58cde9e57d4eac3df63b639f.tar.bz2
online_test-11d1586a53c27d4e58cde9e57d4eac3df63b639f.zip
Fix bug which prevented deletion of comments in forum
-rw-r--r--yaksh/templates/yaksh/post_comments.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/post_comments.html b/yaksh/templates/yaksh/post_comments.html
index 70aac47..aadc48b 100644
--- a/yaksh/templates/yaksh/post_comments.html
+++ b/yaksh/templates/yaksh/post_comments.html
@@ -77,7 +77,7 @@
</strong>
</div>
<div class="col-6 text-right">
- <small class="text-muted">{{comment.created_at}} {% if user == course.creator or user in course.get_teachers %} <a href="{% url 'yaksh:hide_comment' post.target.id comment.uid %}" class="fa fa-trash"></a>{% endif %}</small>
+ <small class="text-muted">{{comment.created_at}} {% if user == course.creator or user in course.get_teachers %} <a href="{% url 'yaksh:hide_comment' course.id comment.uid %}" class="fa fa-trash"></a>{% endif %}</small>
</div>
</div>
<p class="card-text description">{{comment.description|safe}}</p>