Commit 69225f64 by Kevin Chugh

cohort ID showing, have to translate to display text

parent fcbd4bd1
......@@ -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
......
......@@ -26,9 +26,11 @@
<div class="discussion-post">
<div><a href="javascript:void(0)" class="dogear action-follow" data-tooltip="follow"></a></div>
<header>
%if group_id:
<div class="group-visibility-label">This post visible only to Group ${cohort_dictionary[thread['group_id']]}.</div>
%endif
${"<% if (obj.group_id) { %>"}
<div class="group-visibility-label">This post visible only to Group ${"<%- obj.group_id%>"}.</div>
${"<% } %>"}
<a href="#" class="vote-btn discussion-vote discussion-vote-up" data-role="discussion-vote" data-tooltip="vote"><span class="plus-icon">+</span> <span class='votes-count-number'>${'<%- votes["up_count"] %>'}</span></a>
<h1>${'<%- title %>'}</h1>
<p class="posted-details">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment