bug fix
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
<section class="discussion">
|
||||
<a class="discussion-title" href="javascript:void(0)">Discussion</a>
|
||||
${renderer.render_thread(course_id, thread, edit_thread=True, show_comments=True)}
|
||||
${renderer.render_thread(course_id, thread, show_comments=True)}
|
||||
</section>
|
||||
|
||||
<%!
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<%namespace name="renderer" file="_thread.html"/>
|
||||
|
||||
${renderer.render_content(thread, "thread")}
|
||||
${renderer.render_thread(course_id, thread)}
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
<%! from dateutil.parser import parse %>
|
||||
<%! import urllib %>
|
||||
|
||||
<%def name="render_thread(course_id, thread, edit_thread=False, show_comments=False)">
|
||||
<%def name="render_thread(course_id, thread, show_comments=False)">
|
||||
<div class="thread" _id="${thread['id']}">
|
||||
${render_content(thread, "thread", edit_thread=edit_thread, show_comments=show_comments)}
|
||||
${render_content(thread, "thread", show_comments=show_comments)}
|
||||
% if show_comments:
|
||||
${render_comments(thread['children'])}
|
||||
% endif
|
||||
|
||||
Reference in New Issue
Block a user