From 9308e39d4e3feffd5f8578561b63f8ee3cbdc95f Mon Sep 17 00:00:00 2001 From: Rocky Duan Date: Sat, 4 Aug 2012 18:03:59 -0400 Subject: [PATCH] bug fix --- lms/templates/discussion/_single_thread.html | 2 +- lms/templates/discussion/ajax_create_thread.html | 2 +- lms/templates/discussion/thread.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lms/templates/discussion/_single_thread.html b/lms/templates/discussion/_single_thread.html index 9bc37c29c0..8dd2b5e87f 100644 --- a/lms/templates/discussion/_single_thread.html +++ b/lms/templates/discussion/_single_thread.html @@ -2,7 +2,7 @@
Discussion - ${renderer.render_thread(course_id, thread, edit_thread=True, show_comments=True)} + ${renderer.render_thread(course_id, thread, show_comments=True)}
<%! diff --git a/lms/templates/discussion/ajax_create_thread.html b/lms/templates/discussion/ajax_create_thread.html index e05c586232..0648b1142e 100644 --- a/lms/templates/discussion/ajax_create_thread.html +++ b/lms/templates/discussion/ajax_create_thread.html @@ -1,3 +1,3 @@ <%namespace name="renderer" file="_thread.html"/> -${renderer.render_content(thread, "thread")} +${renderer.render_thread(course_id, thread)} diff --git a/lms/templates/discussion/thread.html b/lms/templates/discussion/thread.html index 0f23988331..08b61fbbcc 100644 --- a/lms/templates/discussion/thread.html +++ b/lms/templates/discussion/thread.html @@ -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)">
- ${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