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
9e9825cb
Commit
9e9825cb
authored
Oct 11, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable the edge virtual university landing page in the lms
parent
d21c5761
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
lms/djangoapps/courseware/views.py
+1
-1
lms/envs/aws.py
+1
-0
lms/envs/cms/dev.py
+6
-1
lms/envs/dev.py
+4
-0
lms/templates/university_profile/edge.html
+0
-1
No files found.
lms/djangoapps/courseware/views.py
View file @
9e9825cb
...
...
@@ -420,7 +420,7 @@ def university_profile(request, org_id):
Return the profile for the particular org_id. 404 if it's not valid.
"""
all_courses
=
modulestore
()
.
get_courses
()
valid_org_ids
=
set
(
c
.
org
for
c
in
all_courses
)
valid_org_ids
=
set
(
c
.
org
for
c
in
all_courses
)
.
union
(
settings
.
VIRTUAL_UNIVERSITIES
)
if
org_id
not
in
valid_org_ids
:
raise
Http404
(
"University Profile not found for {0}"
.
format
(
org_id
))
...
...
lms/envs/aws.py
View file @
9e9825cb
...
...
@@ -58,6 +58,7 @@ LOGGING = get_logger_config(LOG_DIR,
COURSE_LISTINGS
=
ENV_TOKENS
.
get
(
'COURSE_LISTINGS'
,
{})
SUBDOMAIN_BRANDING
=
ENV_TOKENS
.
get
(
'SUBDOMAIN_BRANDING'
,
{})
VIRTUAL_UNIVERSITIES
=
ENV_TOKENS
.
get
(
'VIRTUAL_UNIVERSITIES'
,
[])
COMMENTS_SERVICE_URL
=
ENV_TOKENS
.
get
(
"COMMENTS_SERVICE_URL"
,
''
)
COMMENTS_SERVICE_KEY
=
ENV_TOKENS
.
get
(
"COMMENTS_SERVICE_KEY"
,
''
)
...
...
lms/envs/cms/dev.py
View file @
9e9825cb
...
...
@@ -4,6 +4,11 @@ Settings for the LMS that runs alongside the CMS on AWS
from
..dev
import
*
MITX_FEATURES
[
'AUTH_USE_MIT_CERTIFICATES'
]
=
False
SUBDOMAIN_BRANDING
[
'edge'
]
=
'edge'
VIRTUAL_UNIVERSITIES
=
[
'edge'
]
modulestore_options
=
{
'default_class'
:
'xmodule.raw_module.RawDescriptor'
,
'host'
:
'localhost'
,
...
...
@@ -24,6 +29,6 @@ CONTENTSTORE = {
'ENGINE'
:
'xmodule.contentstore.mongo.MongoContentStore'
,
'OPTIONS'
:
{
'host'
:
'localhost'
,
'db'
:
'xcontent'
,
'db'
:
'xcontent'
,
}
}
lms/envs/dev.py
View file @
9e9825cb
...
...
@@ -101,6 +101,10 @@ SUBDOMAIN_BRANDING = {
'harvard'
:
'HarvardX'
,
}
# List of `university` landing pages to display, even though they may not
# have an actual course with that org set
VIRTUAL_UNIVERSITIES
=
[]
COMMENTS_SERVICE_KEY
=
"PUT_YOUR_API_KEY_HERE"
...
...
lms/templates/university_profile/edge.html
View file @
9e9825cb
<
%
inherit
file=
"base.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
block
name=
"title"
>
edX edge
</
%
block>
<
%
block
name=
"bodyclass"
>
no-header edge-landing
</
%
block>
...
...
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