Commit c3dbcd08 by Christina Roberts

Merge pull request #12415 from edx/christina/delete-unused-files

These old discussion templates are not referenced in the codebase.
parents 238ae554 a49cdc7a
<%! 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>
<%! 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>
<%!
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 &rsaquo;</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
<%!
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>
<%! 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
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