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
f1dabe15
Commit
f1dabe15
authored
Aug 07, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ccp0101/moderation' of github.com:dementrock/mitx into lol
parents
f3d44225
e9c970e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
lms/djangoapps/django_comment_client/permissions.py
+1
-1
lms/templates/discussion/_thread.html
+1
-4
No files found.
lms/djangoapps/django_comment_client/permissions.py
View file @
f1dabe15
...
...
@@ -77,7 +77,7 @@ VIEW_PERMISSIONS = {
'openclose_thread'
:
(
'openclose_thread'
),
'create_sub_comment'
:
([
'create_sub_comment'
,
'open'
]),
'delete_comment'
:
(
'delete_comment'
),
'vote_for_commen
d
'
:
([
'vote'
,
'open'
]),
'vote_for_commen
t
'
:
([
'vote'
,
'open'
]),
'undo_vote_for_comment'
:
([
'unvote'
,
'open'
]),
'vote_for_thread'
:
([
'vote'
,
'open'
]),
'undo_vote_for_thread'
:
([
'unvote'
,
'open'
]),
...
...
lms/templates/discussion/_thread.html
View file @
f1dabe15
...
...
@@ -89,12 +89,9 @@
${render_link("discussion-link discussion-reply discussion-reply-" + type, "Reply")}
${render_link("discussion-link discussion-edit", "Edit")}
% if type ==
"thread"
:
% if type ==
'thread'
:
<a
class=
"discussion-link discussion-permanent-link"
href=
"${reverse('django_comment_client.forum.views.single_thread', kwargs={'discussion_id':discussion_id, 'thread_id':content['id'], 'course_id':course_id})}"
>
Permanent Link
</a>
% else:
<a
class=
"discussion-link discussion-permanent-link"
href=
"${reverse('django_comment_client.forum.views.single_thread', kwargs={'discussion_id':discussion_id, 'thread_id':content['thread_id'], 'course_id':course_id})}#${content['id']}"
>
Permanent Link
</a>
% endif
<span
class=
"discussion-endorse-control"
>
% if content.get('endorsed', False):
<input
type=
"checkbox"
checked=
"checked"
class=
"discussion-link discussion-endorse"
id=
"discussion-endorse-${content['id']}"
/>
...
...
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