Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a49cdc7a
Commit
a49cdc7a
authored
May 10, 2016
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
These old discussion templates are not referenced in the codebase.
parent
632c38f6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
64 deletions
+0
-64
lms/templates/discussion/_blank_slate.html
+0
-8
lms/templates/discussion/_js_data.html
+0
-13
lms/templates/discussion/_recent_active_posts.html
+0
-18
lms/templates/discussion/_search_bar.html
+0
-15
lms/templates/discussion/_similar_posts.html
+0
-10
No files found.
lms/templates/discussion/_blank_slate.html
deleted
100644 → 0
View file @
632c38f6
<
%!
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>
lms/templates/discussion/_js_data.html
deleted
100644 → 0
View file @
632c38f6
<
%!
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>
lms/templates/discussion/_recent_active_posts.html
deleted
100644 → 0
View file @
632c38f6
<
%!
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
lms/templates/discussion/_search_bar.html
deleted
100644 → 0
View file @
632c38f6
<
%!
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>
lms/templates/discussion/_similar_posts.html
deleted
100644 → 0
View file @
632c38f6
<
%!
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment