%! from django.core.urlresolvers import reverse %> <%! from datehelper import time_ago_in_words %> <%! from dateutil.parser import parse %> <%! from django_comment_client.utils import pluralize %> <%! import urllib %> <%! def user_id_with_anonymity(content): if content.get('anonymous', False): return '' else: return content['user_id'] %> <%def name="render_thread(course_id, thread, show_comments=False)">
% if type == 'comment':- Endorse
% endif
- Edit
- Delete
% if type == "thread":
-
% if content['closed']:
Re-open thread
% else:
Close thread
% endif
% endif
${render_title(content, type, **kwargs)}