Files
edx-platform/lms/templates/discussion/_single_thread.html
2012-08-01 18:03:36 -04:00

18 lines
575 B
HTML

<%namespace name="renderer" file="_thread.html"/>
<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)}
</section>
<%!
def escape_quotes(text):
return text.replace('\"', '\\\"').replace("\'", "\\\'")
%>
<script type="text/javascript">
var $$user_info = JSON.parse('${user_info | escape_quotes}');
var $$course_id = "${course_id}";
var $$annotated_content_info = JSON.parse("${annotated_content_info | escape_quotes}");
</script>