From a49cdc7a1a2a50be8d0b7a2c0d336abab41de325 Mon Sep 17 00:00:00 2001 From: cahrens Date: Tue, 10 May 2016 10:46:59 -0400 Subject: [PATCH] These old discussion templates are not referenced in the codebase. --- lms/templates/discussion/_blank_slate.html | 8 -------- lms/templates/discussion/_js_data.html | 13 ------------- .../discussion/_recent_active_posts.html | 18 ------------------ lms/templates/discussion/_search_bar.html | 15 --------------- lms/templates/discussion/_similar_posts.html | 10 ---------- 5 files changed, 64 deletions(-) delete mode 100644 lms/templates/discussion/_blank_slate.html delete mode 100644 lms/templates/discussion/_js_data.html delete mode 100644 lms/templates/discussion/_recent_active_posts.html delete mode 100644 lms/templates/discussion/_search_bar.html delete mode 100644 lms/templates/discussion/_similar_posts.html diff --git a/lms/templates/discussion/_blank_slate.html b/lms/templates/discussion/_blank_slate.html deleted file mode 100644 index 8186b30f3c..0000000000 --- a/lms/templates/discussion/_blank_slate.html +++ /dev/null @@ -1,8 +0,0 @@ -<%! from django.utils.translation import ugettext as _ %> -
- % if performed_search: - ${_("Sorry! We can't find anything matching your search. Please try another search.")} - % else: - ${_("There are no posts here yet. Be the first one to post!")} - % endif -
diff --git a/lms/templates/discussion/_js_data.html b/lms/templates/discussion/_js_data.html deleted file mode 100644 index ba9034ea81..0000000000 --- a/lms/templates/discussion/_js_data.html +++ /dev/null @@ -1,13 +0,0 @@ -<%! from django.template.defaultfilters import escapejs %> - - diff --git a/lms/templates/discussion/_recent_active_posts.html b/lms/templates/discussion/_recent_active_posts.html deleted file mode 100644 index 2d032c2b0a..0000000000 --- a/lms/templates/discussion/_recent_active_posts.html +++ /dev/null @@ -1,18 +0,0 @@ -<%! -from django.utils.translation import ugettext as _ -from django_comment_client.utils import permalink -%> - -% if recent_active_threads: - -% endif diff --git a/lms/templates/discussion/_search_bar.html b/lms/templates/discussion/_search_bar.html deleted file mode 100644 index a3f4d26294..0000000000 --- a/lms/templates/discussion/_search_bar.html +++ /dev/null @@ -1,15 +0,0 @@ -<%! -from django.utils.translation import ugettext as _ -from urllib import urlencode - -def merge(dic1, dic2): - return dict(dic1.items() + dic2.items()) - -def base_url_for_search(): - return base_url + '?' + urlencode(merge(query_params, {'page': 1})) -%> - -
- - -
diff --git a/lms/templates/discussion/_similar_posts.html b/lms/templates/discussion/_similar_posts.html deleted file mode 100644 index 9788db7582..0000000000 --- a/lms/templates/discussion/_similar_posts.html +++ /dev/null @@ -1,10 +0,0 @@ -<%! from django.utils.translation import ugettext as _ %> -% if len(threads) > 0: - Similar Posts: - ${_("Hide")} -
- % for thread in threads: - ${thread['title'] | h} - % endfor -
-% endif