Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
0e21ed03
Commit
0e21ed03
authored
12 years ago
by
Rocky Duan
Browse files
Options
Downloads
Patches
Plain Diff
removed new post button & added recent threads to single thread page
parent
43ef4f64
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/djangoapps/django_comment_client/forum/views.py
+13
-1
13 additions, 1 deletion
lms/djangoapps/django_comment_client/forum/views.py
lms/templates/discussion/single_thread.html
+35
-0
35 additions, 0 deletions
lms/templates/discussion/single_thread.html
with
48 additions
and
1 deletion
lms/djangoapps/django_comment_client/forum/views.py
+
13
−
1
View file @
0e21ed03
...
...
@@ -209,16 +209,28 @@ def single_thread(request, course_id, discussion_id, thread_id):
else
:
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
=
{
'
discussion_id
'
:
discussion_id
,
'
csrf
'
:
csrf
(
request
)[
'
csrf_token
'
],
'
init
'
:
''
,
'
content
'
:
render_single_thread
(
request
,
discussion_id
,
course_id
,
thread_id
),
'
course
'
:
course
,
'
recent_active_threads
'
:
recent_active_threads
,
'
trending_tags
'
:
trending_tags
,
'
course_id
'
:
course
.
id
,
}
return
render_to_response
(
'
discussion/in
dex
.html
'
,
context
)
return
render_to_response
(
'
discussion/
s
in
gle_thread
.html
'
,
context
)
def
user_profile
(
request
,
course_id
,
user_id
):
...
...
This diff is collapsed.
Click to expand it.
lms/templates/discussion/single_thread.html
0 → 100644
+
35
−
0
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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment