Commit 9308e39d by Rocky Duan

bug fix

parent 09baabee
......@@ -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>
<%!
......
<%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
......
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