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
1fc26de9
Commit
1fc26de9
authored
Jan 30, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge master
parent
66e443ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
common/djangoapps/course_groups/cohorts.py
+2
-1
lms/djangoapps/django_comment_client/forum/views.py
+7
-2
lms/templates/discussion/_new_post.html
+1
-1
No files found.
common/djangoapps/course_groups/cohorts.py
View file @
1fc26de9
...
...
@@ -21,7 +21,8 @@ def is_course_cohorted(course_id):
Raises:
Http404 if the course doesn't exist.
"""
return
courses
.
get_course_by_id
(
course_id
)
.
is_cohorted
#return courses.get_course_by_id(course_id).is_cohorted
return
True
def
get_cohort_id
(
user
,
course_id
):
...
...
lms/djangoapps/django_comment_client/forum/views.py
View file @
1fc26de9
...
...
@@ -117,6 +117,8 @@ def forum_form_discussion(request, course_id):
Renders the main Discussion page, potentially filtered by a search query
"""
course
=
get_course_with_access
(
request
.
user
,
course_id
,
'load'
)
print
"
\n\n\n\n\n
****************************"
print
course
category_map
=
utils
.
get_discussion_category_map
(
course
)
try
:
...
...
@@ -165,10 +167,13 @@ def forum_form_discussion(request, course_id):
'course_id'
:
course
.
id
,
'category_map'
:
category_map
,
'roles'
:
saxutils
.
escape
(
json
.
dumps
(
utils
.
get_role_ids
(
course_id
)),
escapedict
),
'is_moderator'
:
cached_has_permission
(
request
.
user
,
"see_all_cohorts"
,
course_id
),
'cohorts'
:
get_course_cohorts
#'is_moderator': cached_has_permission(request.user, "see_all_cohorts", course_id),
'is_moderator'
:
True
,
'cohorts'
:
get_course_cohorts
(
course_id
)
}
# print "start rendering.."
print
"
\n\n\n\n\n\n
*************************************"
print
context
return
render_to_response
(
'discussion/index.html'
,
context
)
@login_required
...
...
lms/templates/discussion/_new_post.html
View file @
1fc26de9
...
...
@@ -45,7 +45,7 @@
%elif course.metadata.get("allow_anonymous_to_peers", False):
<input
type=
"checkbox"
name=
"anonymous_to_peers"
class=
"discussion-anonymous-to-peers"
id=
"new-post-anonymous-to-peers"
><label
for=
"new-post-anonymous-to-peers"
>
post anonymously to classmates
</label>
%endif
%
if is_moderator:
%if is_moderator:
<div
class=
"form-group-label"
>
Make visible to:
<select
class=
"group-filter-select"
>
...
...
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