-
+ % for thread in threads:
+
- ${thread['title'] | h} ${thread['comments_count'] | h}+${thread['votes']['up_count'] | h} + % endfor +
diff --git a/lms/djangoapps/django_comment_client/forum/views.py b/lms/djangoapps/django_comment_client/forum/views.py
index 4cb1acdb2b..48f130f107 100644
--- a/lms/djangoapps/django_comment_client/forum/views.py
+++ b/lms/djangoapps/django_comment_client/forum/views.py
@@ -176,6 +176,7 @@ def forum_form_discussion(request, course_id):
def render_single_thread(request, discussion_id, course_id, thread_id):
thread = cc.Thread.find(thread_id).retrieve(recursive=True).to_dict()
+ threads, query_params = get_threads(request, course_id)
user_info = cc.User.from_django_user(request.user).to_dict()
@@ -188,6 +189,7 @@ def render_single_thread(request, discussion_id, course_id, thread_id):
'course_id': course_id,
'request': request,
'discussion_data': json.dumps({ discussion_id: [utils.safe_content(thread)] }),
+ 'threads': threads,
}
return render_to_string('discussion/_single_thread.html', context)
@@ -209,6 +211,7 @@ def single_thread(request, course_id, discussion_id, thread_id):
else:
course = get_course_with_access(request.user, course_id, 'load')
+ threads, query_params = get_threads(request, course_id)
recent_active_threads = cc.search_recent_active_threads(
course_id,
@@ -229,6 +232,7 @@ def single_thread(request, course_id, discussion_id, thread_id):
'recent_active_threads': recent_active_threads,
'trending_tags': trending_tags,
'course_id': course.id,
+ 'threads': threads,
}
return render_to_response('discussion/single_thread.html', context)
diff --git a/lms/static/sass/_discussion.scss b/lms/static/sass/_discussion.scss
index 7d0ccc354e..aff05d21a1 100644
--- a/lms/static/sass/_discussion.scss
+++ b/lms/static/sass/_discussion.scss
@@ -19,6 +19,28 @@
vertical-align: baseline;
}
+ .discussion {
+ display: table-cell;
+ vertical-align: top;
+ width: 72.3%;
+ padding: 40px;
+
+ h1 {
+ font-size: 28px;
+ font-weight: 700;
+ }
+
+ .posted-details {
+ font-size: 12px;
+ font-style: italic;
+ color: #737373;
+ }
+
+ p + p {
+ margin-top: 20px;
+ }
+ }
+
.discussion-sidebar {
display: table-cell;
diff --git a/lms/templates/discussion/_single_thread.html b/lms/templates/discussion/_single_thread.html
index bfbf7b069e..ccf106a6df 100644
--- a/lms/templates/discussion/_single_thread.html
+++ b/lms/templates/discussion/_single_thread.html
@@ -1,10 +1,12 @@
<%namespace name="renderer" file="_content_renderer.html"/>
sometime by Foo