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
ca2a2d2f
Commit
ca2a2d2f
authored
Aug 08, 2012
by
Mike Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lol' of github.com:dementrock/mitx into ccp0101/moderation
Conflicts: lms/urls.py
parents
08199ffc
11104b53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
lms/djangoapps/django_comment_client/utils.py
+2
-2
lms/templates/discussion/_search_bar.html
+1
-1
lms/urls.py
+2
-2
No files found.
lms/djangoapps/django_comment_client/utils.py
View file @
ca2a2d2f
...
...
@@ -65,7 +65,7 @@ def initialize_discussion_info(request, course):
def
_get_module
(
module_descriptor
):
print
module_descriptor
module
=
get_module
(
user
,
request
,
module_descriptor
.
location
,
student_module_cache
)
[
0
]
module
=
get_module
(
user
,
request
,
module_descriptor
.
location
,
student_module_cache
)
return
module
def
_extract_info
(
module
):
...
...
@@ -82,7 +82,7 @@ def initialize_discussion_info(request, course):
filter
(
_is_course_discussion
,
get_full_modules
()
.
items
()))
student_module_cache
=
StudentModuleCache
(
user
,
course
)
student_module_cache
=
StudentModuleCache
.
cache_for_descriptor_descendents
(
user
,
course
)
discussion_info
=
map
(
_extract_info
,
map
(
_get_module
,
discussion_module_descriptors
))
...
...
lms/templates/discussion/_search_bar.html
View file @
ca2a2d2f
...
...
@@ -9,7 +9,7 @@ def base_url_for_search():
%
>
<form
action=
"${base_url_for_search()}"
method=
"get"
class=
"discussion-search-form"
>
% if
'tag' in query_params
:
% if
query_params.get('tags', None)
:
<input
class=
"search-input"
type=
"text"
value=
"[${tags}]${text}"
id=
"keywords"
autocomplete=
"off"
/>
% else:
<input
class=
"search-input"
type=
"text"
value=
"[${tags}]${text}"
id=
"keywords"
autocomplete=
"off"
/>
...
...
lms/urls.py
View file @
ca2a2d2f
...
...
@@ -141,8 +141,8 @@ if settings.COURSEWARE_ENABLED:
# discussion
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/discussion/'
,
include
(
'django_comment_client.urls'
)),
# For the instructor
include
(
'django_comment_client.urls'
)),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/gradebook$'
,
'courseware.views.gradebook'
),
)
...
...
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