Commit 6f848013 by Rocky Duan

fixed bug caused by rearranging stuff

parent 3f1edfd4
......@@ -47,10 +47,10 @@
if kwargs.get('show_comments', False):
url_for_thread = ""
else:
url_for_thread = reverse('django_comment_client.forum.views.single_thread', args=[course_id, thread['id']])
url_for_thread = reverse('django_comment_client.forum.views.single_thread', args=[course_id, content['id']])
%>
% if type == "thread":
<a class="thread-title" name="${content['id']}" href="${kwargs['url_for_thread']}">${content['title'] | h}</a>
<a class="thread-title" name="${content['id']}" href="${url_for_thread}">${content['title'] | h}</a>
% endif
</%def>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment