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
0e21ed03
Commit
0e21ed03
authored
Aug 22, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed new post button & added recent threads to single thread page
parent
43ef4f64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletions
+48
-1
lms/djangoapps/django_comment_client/forum/views.py
+13
-1
lms/templates/discussion/single_thread.html
+35
-0
No files found.
lms/djangoapps/django_comment_client/forum/views.py
View file @
0e21ed03
...
@@ -209,16 +209,28 @@ def single_thread(request, course_id, discussion_id, thread_id):
...
@@ -209,16 +209,28 @@ def single_thread(request, course_id, discussion_id, thread_id):
else
:
else
:
course
=
get_course_with_access
(
request
.
user
,
course_id
,
'load'
)
course
=
get_course_with_access
(
request
.
user
,
course_id
,
'load'
)
recent_active_threads
=
cc
.
search_recent_active_threads
(
course_id
,
recursive
=
False
,
query_params
=
{
'follower_id'
:
request
.
user
.
id
},
)
trending_tags
=
cc
.
search_trending_tags
(
course_id
,
)
context
=
{
context
=
{
'discussion_id'
:
discussion_id
,
'discussion_id'
:
discussion_id
,
'csrf'
:
csrf
(
request
)[
'csrf_token'
],
'csrf'
:
csrf
(
request
)[
'csrf_token'
],
'init'
:
''
,
'init'
:
''
,
'content'
:
render_single_thread
(
request
,
discussion_id
,
course_id
,
thread_id
),
'content'
:
render_single_thread
(
request
,
discussion_id
,
course_id
,
thread_id
),
'course'
:
course
,
'course'
:
course
,
'recent_active_threads'
:
recent_active_threads
,
'trending_tags'
:
trending_tags
,
'course_id'
:
course
.
id
,
'course_id'
:
course
.
id
,
}
}
return
render_to_response
(
'discussion/
index
.html'
,
context
)
return
render_to_response
(
'discussion/
single_thread
.html'
,
context
)
def
user_profile
(
request
,
course_id
,
user_id
):
def
user_profile
(
request
,
course_id
,
user_id
):
...
...
lms/templates/discussion/single_thread.html
0 → 100644
View file @
0e21ed03
<
%
inherit
file=
"../main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
block
name=
"bodyclass"
>
discussion
</
%
block>
<
%
block
name=
"title"
><title>
Discussion – MITx 6.002x
</title></
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'course'
/>
<
%
include
file=
"_js_head_dependencies.html"
/>
</
%
block>
<
%
block
name=
"js_extra"
>
<
%
include
file=
"_js_body_dependencies.html"
/>
</
%
block>
<
%
include
file=
"../courseware/course_navigation.html"
args=
"active_page='discussion'"
/>
<section
class=
"container"
>
<div
class=
"course-wrapper"
>
<section
aria-label=
"Course Navigation"
class=
"course-index"
>
<nav>
<article
class=
"sidebar-module discussion-sidebar"
>
</article>
<
%
include
file=
"_recent_active_posts.html"
/>
<
%
include
file=
"_trending_tags.html"
/>
</nav>
</section>
<section
class=
"course-content"
>
${content}
</section>
</div>
</section>
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