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
722ce53e
Commit
722ce53e
authored
Sep 02, 2012
by
Ibrahim Awwal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull out discussion-thread-list-template into its own file.
parent
81bfdddc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
30 deletions
+31
-30
lms/static/coffee/src/discussion/views/discussion_thread_view.coffee
+0
-1
lms/templates/discussion/_thread_list_template.html
+27
-0
lms/templates/discussion/_underscore_templates.html
+0
-27
lms/templates/discussion/index.html
+3
-2
lms/templates/discussion/single_thread.html
+1
-0
No files found.
lms/static/coffee/src/discussion/views/discussion_thread_view.coffee
View file @
722ce53e
...
...
@@ -6,7 +6,6 @@ class @DiscussionThreadView extends Backbone.View
template
:
_
.
template
(
$
(
"#thread-template"
).
html
())
render
:
->
console
.
log
(
@
model
)
@
$el
.
html
(
@
template
(
@
model
.
toJSON
()))
@
model
.
bind
"change"
,
@
updateModelDetails
if
window
.
user
.
following
(
@
model
)
...
...
lms/templates/discussion/_thread_list_template.html
0 → 100644
View file @
722ce53e
<script
type=
"text/template"
id=
"thread-list-template"
>
<
div
class
=
"browse-search"
>
<
div
class
=
"browse is-open"
>
<
a
href
=
"#"
class
=
"browse-topic-drop-icon"
><
/a
>
<
a
href
=
"#"
class
=
"browse-topic-drop-btn"
><
span
class
=
"current-board"
>
Homework
/
Week
1
<
/span> <span class="drop-arrow">▾</
span
><
/a
>
<
/div
>
<%
include
file
=
"_filter_dropdown.html"
/>
<
div
class
=
"search"
>
<
form
class
=
"post-search"
>
<
input
type
=
"text"
placeholder
=
"Search all discussions"
class
=
"post-search-field"
>
<
/form
>
<
/div
>
<
/div
>
<
div
class
=
"sort-bar"
>
<
span
class
=
"sort-label"
>
Sort
by
:
<
/span
>
<
ul
>
<
li
><
a
href
=
"#"
class
=
"active"
data
-
sort
=
"date"
>
date
<
/a></
li
>
<
li
><
a
href
=
"#"
data
-
sort
=
"votes"
>
votes
<
/a></
li
>
<
li
><
a
href
=
"#"
data
-
sort
=
"comments"
>
comments
<
/a></
li
>
<
/ul
>
<
/div
>
<
div
class
=
"post-list-wrapper"
>
<
ul
class
=
"post-list"
>
<
/ul
>
<
/div
>
</script>
\ No newline at end of file
lms/templates/discussion/_underscore_templates.html
View file @
722ce53e
<script
type=
"text/template"
id=
"thread-list-template"
>
<
div
class
=
"browse-search"
>
<
div
class
=
"browse is-open"
>
<
a
href
=
"#"
class
=
"browse-topic-drop-icon"
><
/a
>
<
a
href
=
"#"
class
=
"browse-topic-drop-btn"
><
span
class
=
"current-board"
>
Homework
/
Week
1
<
/span> <span class="drop-arrow">▾</
span
><
/a
>
<
/div
>
<%
include
file
=
"_filter_dropdown.html"
/>
<
div
class
=
"search"
>
<
form
class
=
"post-search"
>
<
input
type
=
"text"
placeholder
=
"Search all discussions"
class
=
"post-search-field"
>
<
/form
>
<
/div
>
<
/div
>
<
div
class
=
"sort-bar"
>
<
span
class
=
"sort-label"
>
Sort
by
:
<
/span
>
<
ul
>
<
li
><
a
href
=
"#"
class
=
"active"
data
-
sort
=
"date"
>
date
<
/a></
li
>
<
li
><
a
href
=
"#"
data
-
sort
=
"votes"
>
votes
<
/a></
li
>
<
li
><
a
href
=
"#"
data
-
sort
=
"comments"
>
comments
<
/a></
li
>
<
/ul
>
<
/div
>
<
div
class
=
"post-list-wrapper"
>
<
ul
class
=
"post-list"
>
<
/ul
>
<
/div
>
</script>
<script
type=
"text/template"
id=
"thread-template"
>
<
article
class
=
"discussion-article"
data
-
id
=
"${'<%- id %>'}"
>
<
a
href
=
"#"
class
=
"dogear"
><
/a
>
...
...
lms/templates/discussion/index.html
View file @
722ce53e
...
...
@@ -30,4 +30,5 @@
</div>
</section>
<
%
include
file=
"_underscore_templates.html"
/>
\ No newline at end of file
<
%
include
file=
"_underscore_templates.html"
/>
<
%
include
file=
"_thread_list_template.html"
/>
\ No newline at end of file
lms/templates/discussion/single_thread.html
View file @
722ce53e
...
...
@@ -32,3 +32,4 @@
</section>
<
%
include
file=
"_underscore_templates.html"
/>
<
%
include
file=
"_thread_list_template.html"
/>
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