Merge pull request #12415 from edx/christina/delete-unused-files
These old discussion templates are not referenced in the codebase.
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<div class="blank-state">
|
||||
% 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
|
||||
</div>
|
||||
@@ -1,13 +0,0 @@
|
||||
<%! from django.template.defaultfilters import escapejs %>
|
||||
|
||||
<script type="text/javascript">
|
||||
var $$course_id = "${course_id | escapejs}";
|
||||
if (typeof $$annotated_content_info === undefined) {
|
||||
var $$annotated_content_info = {};
|
||||
}
|
||||
$$annotated_content_info = $.extend($$annotated_content_info, JSON.parse("${annotated_content_info | escapejs}"));
|
||||
if (typeof $$discussion_data === undefined) {
|
||||
var $$discussion_data = {};
|
||||
}
|
||||
$$discussion_data = $.extend($$discussion_data, JSON.parse("${discussion_data | escapejs}"));
|
||||
</script>
|
||||
@@ -1,18 +0,0 @@
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django_comment_client.utils import permalink
|
||||
%>
|
||||
|
||||
% if recent_active_threads:
|
||||
<article class="discussion-sidebar-following sidebar-module">
|
||||
<header>
|
||||
<h4>${_("Following")}</h4>
|
||||
<!--<a href="#" class="sidebar-view-all">view all ›</a>-->
|
||||
</header>
|
||||
<ol class="discussion-sidebar-following-list">
|
||||
% for thread in recent_active_threads:
|
||||
<li><a href="${permalink(thread) | h}"><span class="sidebar-following-name">${thread['title'] | h}</span> <span class="sidebar-vote-count">${thread['votes']['point'] | h}</span></a></li>
|
||||
% endfor
|
||||
<ol>
|
||||
</article>
|
||||
% endif
|
||||
@@ -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}))
|
||||
%>
|
||||
|
||||
<form action="${base_url_for_search()}" method="get" class="discussion-search-form">
|
||||
<input class="search-input" type="text" value="${text | h}" id="keywords" autocomplete="off"/>
|
||||
<div class="discussion-link discussion-search-link" href="javascript:void(0)">${_("Search posts")}</div>
|
||||
</form>
|
||||
@@ -1,10 +0,0 @@
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
% if len(threads) > 0:
|
||||
Similar Posts:
|
||||
<a class="hide-similar-posts" href="javascript:void(0)">${_("Hide")}</a>
|
||||
<div class="new-post-similar-posts">
|
||||
% for thread in threads:
|
||||
<a class="similar-post" href="${thread['permalink'] | h}">${thread['title'] | h}</a>
|
||||
% endfor
|
||||
</div>
|
||||
% endif
|
||||
Reference in New Issue
Block a user