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
1ee1d900
Commit
1ee1d900
authored
Aug 01, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixded inline with pagination
parent
0dccfc0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lms/djangoapps/django_comment_client/forum/views.py
+4
-4
No files found.
lms/djangoapps/django_comment_client/forum/views.py
View file @
1ee1d900
...
...
@@ -41,7 +41,7 @@ def render_accordion(request, course, discussion_id):
def
render_discussion
(
request
,
course_id
,
threads
,
discussion_id
=
None
,
with_search_bar
=
True
,
search_text
=
''
,
discussion_type
=
'inline'
,
page
=
1
,
num_pages
=
None
,
per_page
=
THREADS_PER_PAGE
,
url_for_page
=
None
):
per_page
=
THREADS_PER_PAGE
):
template
=
{
'inline'
:
'discussion/_inline.html'
,
'forum'
:
'discussion/_forum.html'
,
...
...
@@ -87,9 +87,9 @@ def render_forum_discussion(*args, **kwargs):
# discussion per page is fixed for now
def
inline_discussion
(
request
,
course_id
,
discussion_id
):
form
page
=
request
.
GET
.
get
(
'page'
,
1
)
threads
,
page
,
num_pages
=
comment_client
.
get_threads
(
discussion_id
,
recursive
=
False
,
page
=
page
,
per_page
=
THREADS_PER_PAGE
)
html
=
render_inline_discussion
(
request
,
course_id
,
threads
,
discussion_id
=
discussion_id
,
num_pages
=
num_pages
,
page
=
page
)
page
=
request
.
GET
.
get
(
'page'
,
1
)
threads
,
page
,
per_page
,
num_pages
=
comment_client
.
get_threads
(
discussion_id
,
recursive
=
False
,
page
=
page
,
per_page
=
THREADS_PER_PAGE
)
html
=
render_inline_discussion
(
request
,
course_id
,
threads
,
discussion_id
=
discussion_id
,
num_pages
=
num_pages
,
page
=
page
,
per_page
=
per_page
)
return
HtmlResponse
(
html
)
def
render_search_bar
(
request
,
course_id
,
discussion_id
=
None
,
text
=
''
):
...
...
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