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
f204e988
Commit
f204e988
authored
Aug 01, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed files
parent
51772c04
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
+9
-9
lms/djangoapps/django_comment_client/forum/views.py
+6
-6
lms/templates/discussion/_accordion.html
+0
-0
lms/templates/discussion/_discussion_module.html
+0
-0
lms/templates/discussion/_forum.html
+1
-1
lms/templates/discussion/_inline.html
+1
-1
lms/templates/discussion/_search_bar.html
+0
-0
lms/templates/discussion/_single_thread.html
+1
-1
lms/templates/discussion/_thread.html
+0
-0
No files found.
lms/djangoapps/django_comment_client/forum/views.py
View file @
f204e988
...
...
@@ -27,9 +27,9 @@ def render_accordion(request, course, discussion_id):
'csrf'
:
csrf
(
request
)[
'csrf_token'
],
}
return
render_to_string
(
'discussion/accordion.html'
,
context
)
return
render_to_string
(
'discussion/
_
accordion.html'
,
context
)
def
render_discussion
(
request
,
course_id
,
threads
,
discussion_id
=
None
,
with_search_bar
=
True
,
search_text
=
''
,
template
=
'discussion/inline.html'
):
def
render_discussion
(
request
,
course_id
,
threads
,
discussion_id
=
None
,
with_search_bar
=
True
,
search_text
=
''
,
template
=
'discussion/
_
inline.html'
):
context
=
{
'threads'
:
threads
,
'discussion_id'
:
discussion_id
,
...
...
@@ -43,10 +43,10 @@ def render_discussion(request, course_id, threads, discussion_id=None, with_sear
return
render_to_string
(
template
,
context
)
def
render_inline_discussion
(
*
args
,
**
kwargs
):
return
render_discussion
(
template
=
'discussion/inline.html'
,
*
args
,
**
kwargs
)
return
render_discussion
(
template
=
'discussion/
_
inline.html'
,
*
args
,
**
kwargs
)
def
render_forum_discussion
(
*
args
,
**
kwargs
):
return
render_discussion
(
template
=
'discussion/forum.html'
,
*
args
,
**
kwargs
)
return
render_discussion
(
template
=
'discussion/
_
forum.html'
,
*
args
,
**
kwargs
)
def
inline_discussion
(
request
,
course_id
,
discussion_id
):
threads
=
comment_client
.
get_threads
(
discussion_id
,
recursive
=
False
)
...
...
@@ -61,7 +61,7 @@ def render_search_bar(request, course_id, discussion_id=None, text=''):
'text'
:
text
,
'course_id'
:
course_id
,
}
return
render_to_string
(
'discussion/search_bar.html'
,
context
)
return
render_to_string
(
'discussion/
_
search_bar.html'
,
context
)
def
forum_form_discussion
(
request
,
course_id
,
discussion_id
):
...
...
@@ -106,7 +106,7 @@ def render_single_thread(request, course_id, thread_id):
'course_id'
:
course_id
,
'request'
:
request
,
}
return
render_to_string
(
'discussion/single_thread.html'
,
context
)
return
render_to_string
(
'discussion/
_
single_thread.html'
,
context
)
def
single_thread
(
request
,
course_id
,
discussion_id
,
thread_id
):
...
...
lms/templates/discussion/accordion.html
→
lms/templates/discussion/
_
accordion.html
View file @
f204e988
File moved
lms/templates/discussion/_
show_discussion
.html
→
lms/templates/discussion/_
discussion_module
.html
View file @
f204e988
File moved
lms/templates/discussion/forum.html
→
lms/templates/discussion/
_
forum.html
View file @
f204e988
<
%
namespace
name=
"renderer"
file=
"thread.html"
/>
<
%
namespace
name=
"renderer"
file=
"
_
thread.html"
/>
<section
class=
"discussion"
_id=
"${discussion_id}"
>
<div
class=
"discussion-non-content"
>
...
...
lms/templates/discussion/inline.html
→
lms/templates/discussion/
_
inline.html
View file @
f204e988
<
%
namespace
name=
"renderer"
file=
"thread.html"
/>
<
%
namespace
name=
"renderer"
file=
"
_
thread.html"
/>
<section
class=
"discussion"
_id=
"${discussion_id}"
>
<div
class=
"discussion-non-content"
>
...
...
lms/templates/discussion/search_bar.html
→
lms/templates/discussion/
_
search_bar.html
View file @
f204e988
File moved
lms/templates/discussion/single_thread.html
→
lms/templates/discussion/
_
single_thread.html
View file @
f204e988
<
%
namespace
name=
"renderer"
file=
"thread.html"
/>
<
%
namespace
name=
"renderer"
file=
"
_
thread.html"
/>
<section
class=
"discussion"
>
<a
class=
"discussion-title"
href=
"javascript:void(0)"
>
Discussion
</a>
...
...
lms/templates/discussion/thread.html
→
lms/templates/discussion/
_
thread.html
View file @
f204e988
File moved
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