From 69225f643524e56a977331ba3e31a6bb2896efeb Mon Sep 17 00:00:00 2001 From: Kevin Chugh Date: Mon, 4 Feb 2013 08:33:33 -0500 Subject: [PATCH] cohort ID showing, have to translate to display text --- lms/djangoapps/django_comment_client/forum/views.py | 3 +++ lms/templates/discussion/_underscore_templates.html | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/django_comment_client/forum/views.py b/lms/djangoapps/django_comment_client/forum/views.py index fa07394c90..2f2809d89a 100644 --- a/lms/djangoapps/django_comment_client/forum/views.py +++ b/lms/djangoapps/django_comment_client/forum/views.py @@ -189,6 +189,9 @@ def single_thread(request, course_id, discussion_id, thread_id): try: thread = cc.Thread.find(thread_id).retrieve(recursive=True, user_id=request.user.id) + print("\n\n\n\n\n\n***************************") + print("thread.get('group_id','NONE')") + print(thread) except (cc.utils.CommentClientError, cc.utils.CommentClientUnknownError) as err: log.error("Error loading single thread.") raise Http404 diff --git a/lms/templates/discussion/_underscore_templates.html b/lms/templates/discussion/_underscore_templates.html index 9903da4c30..4acb6138b9 100644 --- a/lms/templates/discussion/_underscore_templates.html +++ b/lms/templates/discussion/_underscore_templates.html @@ -26,9 +26,11 @@
- %if group_id: -
This post visible only to Group ${cohort_dictionary[thread['group_id']]}.
- %endif + + ${"<% if (obj.group_id) { %>"} +
This post visible only to Group ${"<%- obj.group_id%>"}.
+ ${"<% } %>"} + + ${'<%- votes["up_count"] %>'}

${'<%- title %>'}