diff --git a/common/lib/xmodule/xmodule/discussion_module.py b/common/lib/xmodule/xmodule/discussion_module.py index 500297bf2a..a92b112ef1 100644 --- a/common/lib/xmodule/xmodule/discussion_module.py +++ b/common/lib/xmodule/xmodule/discussion_module.py @@ -4,9 +4,6 @@ from xmodule.x_module import XModule from xmodule.raw_module import RawDescriptor import comment_client -import dateutil -from dateutil.tz import tzlocal -from datehelper import time_ago_in_words import json diff --git a/lms/djangoapps/django_comment_client/forum/views.py b/lms/djangoapps/django_comment_client/forum/views.py index bf263ffaa1..fd9e18103f 100644 --- a/lms/djangoapps/django_comment_client/forum/views.py +++ b/lms/djangoapps/django_comment_client/forum/views.py @@ -9,9 +9,6 @@ from django.contrib.auth.models import User from mitxmako.shortcuts import render_to_response, render_to_string from courseware.courses import get_course_with_access -from dateutil.tz import tzlocal -from datehelper import time_ago_in_words - from urllib import urlencode from django_comment_client.permissions import check_permissions_by_view from django_comment_client.utils import merge_dict, extract, strip_none diff --git a/lms/templates/discussion/_content.html b/lms/templates/discussion/_content.html deleted file mode 100644 index 1489f5997c..0000000000 --- a/lms/templates/discussion/_content.html +++ /dev/null @@ -1,71 +0,0 @@ -<%! from django_comment_client.helpers import url_for_tags, url_for_user %> -<%! from datehelper import time_ago_in_words %> -<%! from dateutil.parser import parse %> -<%! from django_comment_client.helpers import close_thread_text, \ - url_for_tags, \ - url_for_user, \ - pluralize -%> - -
-
-
- -
${content['votes']['point']}
- -
-
- - % if content['type'] == "thread": - ${(content.get('highlighted_title') or content['title']) | h} - - % endif -
- -
${(content.get('highlighted_body') or content['body']) | h}
- - % if content['type'] == "thread": -
- % for tag in content['tags']: - ${tag | h} - % endfor -
- - % endif -
-
- ${time_ago_in_words(parse(content['updated_at']))} ago by - % if content['anonymous']: - anonymous - % else: - ${content['username']} - % endif -
-
- % if content.get('comments_count', -1) >= 0: - % if discussion_type == 'user': - Show all comments (${content['comments_count']} total) - % else: - Show ${content['comments_count']} ${pluralize('comment', content['comments_count'])} - % endif - % endif -
- -
-
-
-
-