fixed bug caused by rearranging stuff

This commit is contained in:
Rocky Duan
2012-07-30 17:20:30 -04:00
parent 6c8214051f
commit 5fcc12136e

View File

@@ -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>