diff --git a/common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee b/common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee index 06a5038573..a5a1deac10 100644 --- a/common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee +++ b/common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee @@ -3,7 +3,7 @@ if Backbone? events: "click .discussion-vote": "toggleVote" - "click .discussion-pin": "togglePin" + "click .admin-pin": "togglePin" "click .action-follow": "toggleFollowing" "click .action-edit": "edit" "click .action-delete": "delete" diff --git a/lms/djangoapps/django_comment_client/forum/views.py b/lms/djangoapps/django_comment_client/forum/views.py index a41cf6c45a..2b05643ff5 100644 --- a/lms/djangoapps/django_comment_client/forum/views.py +++ b/lms/djangoapps/django_comment_client/forum/views.py @@ -88,6 +88,7 @@ def get_threads(request, course_id, discussion_id=None, per_page=THREADS_PER_PAG 'tags', 'commentable_ids']))) threads, page, num_pages = cc.Thread.search(query_params) + #now add the group name if the thread has a group id for thread in threads: diff --git a/lms/templates/discussion/_underscore_templates.html b/lms/templates/discussion/_underscore_templates.html index 9bfb32b3ff..d6c0da5b4c 100644 --- a/lms/templates/discussion/_underscore_templates.html +++ b/lms/templates/discussion/_underscore_templates.html @@ -46,10 +46,17 @@
${'<%- body %>'}
- % if has_permission(user, 'create_comment', course.id): -
- Pin Thread
+ % if has_permission(user, 'create_commentx', course.id): +
+ Pin Thread
+ elif pinned: + THIS ONE IS PINNED % endif + + + + + ${'<% if (obj.courseware_url) { %>'}
(this post is about ${'<%- courseware_title %>'})