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
08bc073f
Commit
08bc073f
authored
Mar 13, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates
parent
a2f9e4d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+1
-1
lms/templates/discussion/_underscore_templates.html
+6
-3
No files found.
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
08bc073f
...
...
@@ -15,7 +15,7 @@ if Backbone?
initialize
:
->
@
displayedCollection
=
new
Discussion
(
@
collection
.
models
,
pages
:
@
collection
.
pages
)
@
collection
.
on
"change"
,
@
reloadDisplayedCollection
@
sortBy
=
"
pinned
"
@
sortBy
=
"
date
"
@
discussionIds
=
""
@
collection
.
on
"reset"
,
(
discussion
)
=>
board
=
$
(
".current-board"
).
html
()
...
...
lms/templates/discussion/_underscore_templates.html
View file @
08bc073f
...
...
@@ -46,11 +46,14 @@
<
div
class
=
"post-body"
>
$
{
'<%- body %>'
}
<
/div
>
%
if
has_permission
(
user
,
'c
reate_commentx
'
,
course
.
id
):
%
if
has_permission
(
user
,
'c
hange_permission
'
,
course
.
id
):
<
div
class
=
"admin-pin discussion-pin notpinned"
data
-
role
=
"thread-pin"
data
-
tooltip
=
"pin this thread"
>
<
i
class
=
"icon"
><
/i><span class="pin-label">Pin Thread</
span
><
/div>
elif
pinned
:
THIS
ONE
IS
PINNED
%
else
:
$
{
"<% if (pinned) { %>"
}
<
div
class
=
"discussion-pin notpinned"
data
-
role
=
"thread-pin"
data
-
tooltip
=
"pin this thread"
>
<
i
class
=
"icon"
><
/i><span class="pin-label">Pin Thread</
span
><
/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