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
a2f9e4d5
Commit
a2f9e4d5
authored
Mar 13, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
almost there
parent
74501280
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee
+1
-1
lms/djangoapps/django_comment_client/forum/views.py
+1
-0
lms/templates/discussion/_underscore_templates.html
+10
-3
No files found.
common/static/coffee/src/discussion/views/discussion_thread_show_view.coffee
View file @
a2f9e4d5
...
...
@@ -3,7 +3,7 @@ if Backbone?
events
:
"click .discussion-vote"
:
"toggleVote"
"click .
discussio
n-pin"
:
"togglePin"
"click .
admi
n-pin"
:
"togglePin"
"click .action-follow"
:
"toggleFollowing"
"click .action-edit"
:
"edit"
"click .action-delete"
:
"delete"
...
...
lms/djangoapps/django_comment_client/forum/views.py
View file @
a2f9e4d5
...
...
@@ -88,6 +88,7 @@ def get_threads(request, course_id, discussion_id=None, per_page=THREADS_PER_PAG
'tags'
,
'commentable_ids'
])))
threads
,
page
,
num_pages
=
cc
.
Thread
.
search
(
query_params
)
#now add the group name if the thread has a group id
for
thread
in
threads
:
...
...
lms/templates/discussion/_underscore_templates.html
View file @
a2f9e4d5
...
...
@@ -46,10 +46,17 @@
<
div
class
=
"post-body"
>
$
{
'<%- body %>'
}
<
/div
>
%
if
has_permission
(
user
,
'create_comment'
,
course
.
id
):
<
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>
%
if
has_permission
(
user
,
'create_commentx'
,
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
%
endif
$
{
'<% if (obj.courseware_url) { %>'
}
<
div
class
=
"post-context"
>
(
this
post
is
about
<
a
href
=
"${'<%- courseware_url%>'}"
>
$
{
'<%- courseware_title %>'
}
<
/a>
)
...
...
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