Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
80ab2d27
Commit
80ab2d27
authored
Aug 19, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed comment retrieval
parent
b4ec109d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
lms/templates/discussion/_ajax_single_thread.html
+2
-2
lms/templates/discussion/_content_renderer.html
+3
-1
lms/templates/discussion/_single_thread.html
+2
-2
No files found.
lms/templates/discussion/_ajax_single_thread.html
View file @
80ab2d27
<
%
namespace
name=
"renderer"
file=
"_
thread
.html"
/>
${renderer.render_comments(thread
['children']
)}
<
%
namespace
name=
"renderer"
file=
"_
content_renderer
.html"
/>
${renderer.render_comments(thread
.get('children')
)}
lms/templates/discussion/_content_renderer.html
View file @
80ab2d27
...
...
@@ -7,7 +7,9 @@
<
%
def
name=
"render_content_with_comments(content)"
>
<div
class=
"${content['type']}"
_id=
"${content['id']}"
_discussion_id=
"${content.get('commentable_id')}"
_author_id=
"${helpers.show_if(content['user_id'], content.get('anonymous'))}"
>
${render_content(content)}
${render_comments(content.get('children', []))}
% if content.get('children') is not None:
${render_comments(content['children'])}
% endif
</div>
</
%
def>
...
...
lms/templates/discussion/_single_thread.html
View file @
80ab2d27
<
%
namespace
name=
"renderer"
file=
"_
thread
.html"
/>
<
%
namespace
name=
"renderer"
file=
"_
content_renderer
.html"
/>
<section
class=
"discussion"
_id=
"${discussion_id}"
>
<a
class=
"discussion-title"
href=
"javascript:void(0)"
>
Discussion
</a>
${renderer.render_
thread(course_id, thread, show_comments=True
)}
${renderer.render_
content_with_comments(thread
)}
</section>
<
%
include
file=
"_js_data.html"
/>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment