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
4ef56930
Commit
4ef56930
authored
Aug 12, 2016
by
Ibrahim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add partner description view
parent
72549cf3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
lms/djangoapps/courseware/views/views.py
+18
-0
lms/urls.py
+3
-0
No files found.
lms/djangoapps/courseware/views/views.py
View file @
4ef56930
...
...
@@ -154,6 +154,24 @@ def courses(request):
)
@ensure_csrf_cookie
@cache_if_anonymous
()
def
partners_description
(
request
,
org
):
courses_list
=
get_courses
(
request
.
user
,
org
=
org
)
if
configuration_helpers
.
get_value
(
"ENABLE_COURSE_SORTING_BY_START_DATE"
,
settings
.
FEATURES
[
"ENABLE_COURSE_SORTING_BY_START_DATE"
]
):
courses_list
=
sort_by_start_date
(
courses_list
)
else
:
courses_list
=
sort_by_announcement
(
courses_list
)
return
render_to_response
(
"partners-description.html"
,
{
'courses'
:
courses_list
}
)
def
get_current_child
(
xmodule
,
min_depth
=
None
,
requested_child
=
None
):
"""
Get the xmodule.position's display item of an xmodule that has a position and
...
...
lms/urls.py
View file @
4ef56930
...
...
@@ -117,6 +117,9 @@ urlpatterns = (
url
(
r'^update_lang/'
,
include
(
'dark_lang.urls'
,
namespace
=
'darklang'
)),
# URLs for API access management
url
(
r'^api-admin/'
,
include
(
'openedx.core.djangoapps.api_admin.urls'
,
namespace
=
'api_admin'
)),
# Partners description page.
url
(
r'^partners/(?P<org>[\w]+)/$'
,
'courseware.views.views.partners_description'
,
name
=
"partners_description"
),
)
urlpatterns
+=
(
...
...
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