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
a08838a2
Commit
a08838a2
authored
Jul 24, 2012
by
Matthew Mongeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Namespace views, remove multicourse.
parent
4aab04e4
Hide whitespace changes
Inline
Side-by-side
Showing
57 changed files
with
61 additions
and
197 deletions
+61
-197
common/djangoapps/student/views.py
+6
-6
lms/djangoapps/certificates/views.py
+1
-1
lms/djangoapps/circuit/views.py
+1
-1
lms/djangoapps/courseware/module_render.py
+2
-2
lms/djangoapps/courseware/views.py
+9
-13
lms/djangoapps/multicourse/__init__.py
+0
-0
lms/djangoapps/multicourse/multicourse_settings.py
+0
-113
lms/djangoapps/multicourse/views.py
+0
-14
lms/envs/common.py
+0
-1
lms/envs/dev_edx4edx.py
+0
-1
lms/envs/dev_ike.py
+0
-1
lms/envs/edx4edx_aws.py
+0
-1
lms/lib/dogfood/views.py
+7
-8
lms/templates/circuits/edit_circuit.html
+0
-0
lms/templates/common/course.html
+0
-0
lms/templates/common/footer.html
+1
-1
lms/templates/common/forgot_password_modal.html
+0
-0
lms/templates/common/login_modal.html
+0
-0
lms/templates/common/main.html
+1
-1
lms/templates/common/navigation.html
+0
-0
lms/templates/common/signup_modal.html
+0
-0
lms/templates/courseware/accordion.html
+0
-0
lms/templates/courseware/course_about.html
+1
-1
lms/templates/courseware/courses.html
+5
-5
lms/templates/courseware/courseware.html
+0
-0
lms/templates/courseware/gradebook.html
+0
-0
lms/templates/courseware/info.html
+0
-0
lms/templates/courseware/profile.html
+0
-0
lms/templates/courseware/university_profile/base.html
+1
-1
lms/templates/courseware/university_profile/berkeleyx.html
+0
-0
lms/templates/courseware/university_profile/harvardx.html
+0
-0
lms/templates/courseware/university_profile/mitx.html
+0
-0
lms/templates/registration/activation_complete.html
+1
-1
lms/templates/registration/activation_invalid.html
+1
-1
lms/templates/registration/email_change_successful.html
+0
-0
lms/templates/registration/email_exists.html
+0
-0
lms/templates/registration/invalid_email_key.html
+0
-0
lms/templates/simplewiki/simplewiki_base.html
+1
-1
lms/templates/static_templates/404.html
+1
-1
lms/templates/static_templates/about.html
+1
-1
lms/templates/static_templates/contact.html
+1
-1
lms/templates/static_templates/copyright.html
+1
-1
lms/templates/static_templates/faq.html
+1
-1
lms/templates/static_templates/help.html
+1
-1
lms/templates/static_templates/honor.html
+1
-1
lms/templates/static_templates/jobs.html
+1
-1
lms/templates/static_templates/press.html
+1
-1
lms/templates/static_templates/press_releases/MIT_and_Harvard_announce_edX.html
+1
-1
lms/templates/static_templates/press_releases/UC_Berkeley_joins_edX.html
+1
-1
lms/templates/static_templates/privacy.html
+1
-1
lms/templates/static_templates/server-down.html
+1
-1
lms/templates/static_templates/server-error.html
+1
-1
lms/templates/static_templates/server-overloaded.html
+1
-1
lms/templates/static_templates/tos.html
+1
-1
lms/templates/student/dashboard.html
+2
-2
lms/templates/student/index.html
+5
-5
lms/templates/student/name_changes.html
+0
-0
No files found.
common/djangoapps/student/views.py
View file @
a08838a2
...
...
@@ -78,7 +78,7 @@ def index(request):
for
course
in
courses
:
universities
[
course
.
org
]
.
append
(
course
)
return
render_to_response
(
'index.html'
,
{
'universities'
:
universities
,
'entries'
:
entries
})
return
render_to_response
(
'
student/
index.html'
,
{
'universities'
:
universities
,
'entries'
:
entries
})
def
course_from_id
(
id
):
...
...
@@ -108,7 +108,7 @@ def dashboard(request):
message
=
render_to_string
(
'registration/activate_account_notice.html'
,
{
'email'
:
user
.
email
})
context
=
{
'courses'
:
courses
,
'message'
:
message
}
return
render_to_response
(
'dashboard.html'
,
context
)
return
render_to_response
(
'
student/
dashboard.html'
,
context
)
def
try_change_enrollment
(
request
):
...
...
@@ -512,14 +512,14 @@ def confirm_email_change(request, key):
try
:
pec
=
PendingEmailChange
.
objects
.
get
(
activation_key
=
key
)
except
PendingEmailChange
.
DoesNotExist
:
return
render_to_response
(
"invalid_email_key.html"
,
{})
return
render_to_response
(
"
registration/
invalid_email_key.html"
,
{})
user
=
pec
.
user
d
=
{
'old_email'
:
user
.
email
,
'new_email'
:
pec
.
new_email
}
if
len
(
User
.
objects
.
filter
(
email
=
pec
.
new_email
))
!=
0
:
return
render_to_response
(
"email_exists.html"
,
d
)
return
render_to_response
(
"
registration/
email_exists.html"
,
d
)
subject
=
render_to_string
(
'emails/email_change_subject.txt'
,
d
)
subject
=
''
.
join
(
subject
.
splitlines
())
...
...
@@ -536,7 +536,7 @@ def confirm_email_change(request, key):
pec
.
delete
()
user
.
email_user
(
subject
,
message
,
settings
.
DEFAULT_FROM_EMAIL
)
return
render_to_response
(
"email_change_successful.html"
,
d
)
return
render_to_response
(
"
registration/
email_change_successful.html"
,
d
)
@ensure_csrf_cookie
...
...
@@ -573,7 +573,7 @@ def pending_name_changes(request):
'email'
:
c
.
user
.
email
,
'uid'
:
c
.
user
.
id
,
'cid'
:
c
.
id
}
for
c
in
changes
]}
return
render_to_response
(
'name_changes.html'
,
js
)
return
render_to_response
(
'
student/
name_changes.html'
,
js
)
@ensure_csrf_cookie
...
...
lms/djangoapps/certificates/views.py
View file @
a08838a2
...
...
@@ -85,7 +85,7 @@ def certificate_request(request):
'survey_list'
:
survey_list
,
'name'
:
user_info
.
name
}
return
render_to_response
(
'cert_request.html'
,
context
)
return
render_to_response
(
'cert_request.html'
,
context
)
# TODO: This doesn't exist currently
# This method should only be called if the user has a grade and has requested a certificate
...
...
lms/djangoapps/circuit/views.py
View file @
a08838a2
...
...
@@ -42,7 +42,7 @@ def edit_circuit(request, circuit):
if
not
circuit
.
isalnum
():
raise
Http404
()
response
=
render_to_response
(
'edit_circuit.html'
,
{
'name'
:
circuit
,
response
=
render_to_response
(
'
circuits/
edit_circuit.html'
,
{
'name'
:
circuit
,
'circuit_line'
:
circuit_line
(
circuit
)})
response
[
'Cache-Control'
]
=
'no-cache'
return
response
...
...
lms/djangoapps/courseware/module_render.py
View file @
a08838a2
...
...
@@ -305,8 +305,8 @@ def add_histogram(module):
# TODO: fixme - no filename in module.xml in general (this code block for edx4edx)
# the following if block is for summer 2012 edX course development; it will change when the CMS comes online
if
settings
.
MITX_FEATURES
.
get
(
'DISPLAY_EDIT_LINK'
)
and
settings
.
DEBUG
and
module_xml
.
get
(
'filename'
)
is
not
None
:
coursename
=
multicourse_settings
.
get_coursename_from_request
(
request
)
github_url
=
multicourse_settings
.
get_course_github_url
(
coursename
)
#
coursename = multicourse_settings.get_coursename_from_request(request)
#
github_url = multicourse_settings.get_course_github_url(coursename)
fn
=
module_xml
.
get
(
'filename'
)
if
module_xml
.
tag
==
'problem'
:
fn
=
'problems/'
+
fn
# grrr
edit_link
=
(
github_url
+
'/tree/master/'
+
fn
)
if
github_url
is
not
None
else
None
...
...
lms/djangoapps/courseware/views.py
View file @
a08838a2
...
...
@@ -19,7 +19,6 @@ from django.views.decorators.cache import cache_control
from
module_render
import
toc_for_course
,
get_module
,
get_section
from
models
import
StudentModuleCache
from
student.models
import
UserProfile
from
multicourse
import
multicourse_settings
from
util.cache
import
cache
,
cache_if_anonymous
from
student.models
import
UserTestGroup
,
CourseEnrollment
...
...
@@ -63,7 +62,7 @@ def courses(request):
for
course
in
courses
:
universities
[
course
.
org
]
.
append
(
course
)
return
render_to_response
(
"courses.html"
,
{
'universities'
:
universities
})
return
render_to_response
(
"course
ware/course
s.html"
,
{
'universities'
:
universities
})
@cache_control
(
no_cache
=
True
,
no_store
=
True
,
must_revalidate
=
True
)
...
...
@@ -86,7 +85,7 @@ def gradebook(request, course_id):
'realname'
:
UserProfile
.
objects
.
get
(
user
=
student
)
.
name
})
return
render_to_response
(
'gradebook.html'
,
{
'students'
:
student_info
,
'course'
:
course
})
return
render_to_response
(
'
courseware/
gradebook.html'
,
{
'students'
:
student_info
,
'course'
:
course
})
@login_required
...
...
@@ -119,7 +118,7 @@ def profile(request, course_id, student_id=None):
}
context
.
update
(
grades
.
grade_sheet
(
student
,
course
,
student_module_cache
))
return
render_to_response
(
'profile.html'
,
context
)
return
render_to_response
(
'
courseware/
profile.html'
,
context
)
def
render_accordion
(
request
,
course
,
chapter
,
section
):
...
...
@@ -144,7 +143,7 @@ def render_accordion(request, course, chapter, section):
(
'course_id'
,
course
.
id
),
(
'format_url_params'
,
format_url_params
),
(
'csrf'
,
csrf
(
request
)[
'csrf_token'
])]
+
template_imports
.
items
())
return
render_to_string
(
'accordion.html'
,
context
)
return
render_to_string
(
'
courseware/
accordion.html'
,
context
)
@ensure_csrf_cookie
...
...
@@ -180,9 +179,6 @@ def index(request, course_id, chapter=None, section=None,
chapter
=
clean
(
chapter
)
section
=
clean
(
section
)
if
settings
.
ENABLE_MULTICOURSE
:
settings
.
MODULESTORE
[
'default'
][
'OPTIONS'
][
'data_dir'
]
=
settings
.
DATA_DIR
+
multicourse_settings
.
get_course_xmlpath
(
course
)
context
=
{
'csrf'
:
csrf
(
request
)[
'csrf_token'
],
'accordion'
:
render_accordion
(
request
,
course
,
chapter
,
section
),
...
...
@@ -201,7 +197,7 @@ def index(request, course_id, chapter=None, section=None,
module
,
_
,
_
,
_
=
get_module
(
request
.
user
,
request
,
section
.
location
,
student_module_cache
)
context
[
'content'
]
=
module
.
get_html
()
result
=
render_to_response
(
'courseware.html'
,
context
)
result
=
render_to_response
(
'courseware
/courseware
.html'
,
context
)
return
result
...
...
@@ -220,7 +216,7 @@ def jump_to(request, probname=None):
'''
# get coursename if stored
coursename
=
multicourse_settings
.
get_coursename_from_request
(
request
)
#
coursename = multicourse_settings.get_coursename_from_request(request)
# begin by getting course.xml tree
xml
=
content_parser
.
course_file
(
request
.
user
,
coursename
)
...
...
@@ -257,7 +253,7 @@ def jump_to(request, probname=None):
def
course_info
(
request
,
course_id
):
course
=
check_course
(
course_id
)
return
render_to_response
(
'info.html'
,
{
'course'
:
course
})
return
render_to_response
(
'
courseware/
info.html'
,
{
'course'
:
course
})
@ensure_csrf_cookie
...
...
@@ -270,7 +266,7 @@ def course_about(request, course_id):
return
False
course
=
check_course
(
course_id
,
course_must_be_open
=
False
)
registered
=
registered_for_course
(
course
,
request
.
user
)
return
render_to_response
(
'
portal
/course_about.html'
,
{
'course'
:
course
,
'registered'
:
registered
})
return
render_to_response
(
'
courseware
/course_about.html'
,
{
'course'
:
course
,
'registered'
:
registered
})
@ensure_csrf_cookie
...
...
@@ -284,6 +280,6 @@ def university_profile(request, org_id):
# Only grab courses for this org...
courses
=
[
c
for
c
in
all_courses
if
c
.
org
==
org_id
]
context
=
dict
(
courses
=
courses
,
org_id
=
org_id
)
template_file
=
"university_profile/{0}.html"
.
format
(
org_id
)
.
lower
()
template_file
=
"
courseware/
university_profile/{0}.html"
.
format
(
org_id
)
.
lower
()
return
render_to_response
(
template_file
,
context
)
lms/djangoapps/multicourse/__init__.py
deleted
100644 → 0
View file @
4aab04e4
lms/djangoapps/multicourse/multicourse_settings.py
deleted
100644 → 0
View file @
4aab04e4
# multicourse/multicourse_settings.py
#
# central module for providing fixed settings (course name, number, title)
# for multiple courses. Loads this information from django.conf.settings
#
# Allows backward compatibility with settings configurations without
# multiple courses specified.
#
# The central piece of configuration data is the dict COURSE_SETTINGS, with
# keys being the COURSE_NAME (spaces ok), and the value being a dict of
# parameter,value pairs. The required parameters are:
#
# - number : course number (used in the simplewiki pages)
# - title : humanized descriptive course title
#
# Optional parameters:
#
# - xmlpath : path (relative to data directory) for this course (defaults to "")
#
# If COURSE_SETTINGS does not exist, then fallback to 6.002_Spring_2012 default,
# for now.
from
django.conf
import
settings
#-----------------------------------------------------------------------------
# load course settings
if
hasattr
(
settings
,
'COURSE_SETTINGS'
):
# in the future, this could be replaced by reading an XML file
COURSE_SETTINGS
=
settings
.
COURSE_SETTINGS
elif
hasattr
(
settings
,
'COURSE_NAME'
):
# backward compatibility
COURSE_SETTINGS
=
{
settings
.
COURSE_NAME
:
{
'number'
:
settings
.
COURSE_NUMBER
,
'title'
:
settings
.
COURSE_TITLE
,
'location'
:
settings
.
COURSE_LOCATION
,
},
}
else
:
# default to 6.002_Spring_2012
COURSE_SETTINGS
=
{
'6.002_Spring_2012'
:
{
'number'
:
'6.002x'
,
'title'
:
'Circuits and Electronics'
,
'location'
:
'i4x://edx/6002xs12/course/6.002 Spring 2012'
,
},
}
#-----------------------------------------------------------------------------
# wrapper functions around course settings
def
get_coursename_from_request
(
request
):
if
'coursename'
in
request
.
session
:
coursename
=
request
.
session
[
'coursename'
]
settings
.
COURSE_TITLE
=
get_course_title
(
coursename
)
# overwrite settings.COURSE_TITLE based on this
else
:
coursename
=
None
return
coursename
def
get_course_settings
(
coursename
):
if
not
coursename
:
if
hasattr
(
settings
,
'COURSE_DEFAULT'
):
coursename
=
settings
.
COURSE_DEFAULT
else
:
coursename
=
'6.002_Spring_2012'
if
coursename
in
COURSE_SETTINGS
:
return
COURSE_SETTINGS
[
coursename
]
coursename
=
coursename
.
replace
(
' '
,
'_'
)
if
coursename
in
COURSE_SETTINGS
:
return
COURSE_SETTINGS
[
coursename
]
return
None
def
is_valid_course
(
coursename
):
return
get_course_settings
(
coursename
)
!=
None
def
get_course_property
(
coursename
,
property
):
cs
=
get_course_settings
(
coursename
)
# raise exception instead?
if
not
cs
:
return
''
if
property
in
cs
:
return
cs
[
property
]
# default
return
''
def
get_course_xmlpath
(
coursename
):
return
get_course_property
(
coursename
,
'xmlpath'
)
def
get_course_title
(
coursename
):
return
get_course_property
(
coursename
,
'title'
)
def
get_course_number
(
coursename
):
return
get_course_property
(
coursename
,
'number'
)
def
get_course_github_url
(
coursename
):
return
get_course_property
(
coursename
,
'github_url'
)
def
get_course_default_chapter
(
coursename
):
return
get_course_property
(
coursename
,
'default_chapter'
)
def
get_course_default_section
(
coursename
):
return
get_course_property
(
coursename
,
'default_section'
)
def
get_course_location
(
coursename
):
return
get_course_property
(
coursename
,
'location'
)
lms/djangoapps/multicourse/views.py
deleted
100644 → 0
View file @
4aab04e4
from
django.conf
import
settings
from
mitxmako.shortcuts
import
render_to_response
from
multicourse
import
multicourse_settings
def
mitxhome
(
request
):
''' Home page (link from main header). List of courses. '''
if
settings
.
DEBUG
:
print
"[djangoapps.multicourse.mitxhome] MITX_ROOT_URL = "
+
settings
.
MITX_ROOT_URL
if
settings
.
ENABLE_MULTICOURSE
:
context
=
{
'courseinfo'
:
multicourse_settings
.
COURSE_SETTINGS
}
return
render_to_response
(
"mitxhome.html"
,
context
)
return
info
(
request
)
lms/envs/common.py
View file @
a08838a2
...
...
@@ -127,7 +127,6 @@ COURSE_TITLE = "Circuits and Electronics"
### Dark code. Should be enabled in local settings for devel.
ENABLE_MULTICOURSE
=
False
# set to False to disable multicourse display (see lib.util.views.mitxhome)
QUICKEDIT
=
False
WIKI_ENABLED
=
False
...
...
lms/envs/dev_edx4edx.py
View file @
a08838a2
...
...
@@ -33,7 +33,6 @@ EDX4EDX_ROOT = ENV_ROOT / "data/edx4edx"
# ichuang
DEBUG
=
True
ENABLE_MULTICOURSE
=
True
# set to False to disable multicourse display (see lib.util.views.mitxhome)
QUICKEDIT
=
True
MAKO_TEMPLATES
[
'course'
]
=
[
DATA_DIR
,
EDX4EDX_ROOT
]
...
...
lms/envs/dev_ike.py
View file @
a08838a2
...
...
@@ -34,7 +34,6 @@ EDX4EDX_ROOT = ENV_ROOT / "data/edx4edx"
# ichuang
DEBUG
=
True
ENABLE_MULTICOURSE
=
True
# set to False to disable multicourse display (see lib.util.views.mitxhome)
QUICKEDIT
=
False
MAKO_TEMPLATES
[
'course'
]
=
[
DATA_DIR
,
EDX4EDX_ROOT
]
...
...
lms/envs/edx4edx_aws.py
View file @
a08838a2
...
...
@@ -7,7 +7,6 @@ EDX4EDX_ROOT = ENV_ROOT / "data/edx4edx"
### Dark code. Should be enabled in local settings for devel.
QUICKEDIT
=
True
ENABLE_MULTICOURSE
=
True
# set to False to disable multicourse display (see lib.util.views.mitxhome)
###
PIPELINE_CSS_COMPRESSOR
=
None
PIPELINE_JS_COMPRESSOR
=
None
...
...
lms/lib/dogfood/views.py
View file @
a08838a2
...
...
@@ -27,7 +27,6 @@ from lxml import etree
from
courseware.module_render
import
make_track_function
,
I4xSystem
,
get_module
from
courseware.models
import
StudentModule
from
multicourse
import
multicourse_settings
from
student.models
import
UserProfile
from
util.cache
import
cache
from
util.views
import
accepts
...
...
@@ -50,7 +49,7 @@ def update_problem(pfn, pxml, coursename=None, overwrite=True, filestore=None):
'''
if
not
filestore
:
if
not
coursename
:
coursename
=
DOGFOOD_COURSENAME
xp
=
multicourse_settings
.
get_course_xmlpath
(
coursename
)
# path to XML for the course
#
xp = multicourse_settings.get_course_xmlpath(coursename) # path to XML for the course
pfn2
=
settings
.
DATA_DIR
+
xp
+
'problems/
%
s.xml'
%
pfn
fp
=
open
(
pfn2
,
'w'
)
else
:
...
...
@@ -81,7 +80,7 @@ def df_capa_problem(request, id=None):
else
:
coursename
=
request
.
session
[
'coursename'
]
xp
=
multicourse_settings
.
get_course_xmlpath
(
coursename
)
# path to XML for the course
#
xp = multicourse_settings.get_course_xmlpath(coursename) # path to XML for the course
# Grab the XML corresponding to the request from course.xml
module
=
'problem'
...
...
@@ -169,9 +168,9 @@ def quickedit(request, id=None, qetemplate='quickedit.html', coursename=None):
return
quickedit_git_reload
(
request
)
# get coursename if stored
if
not
coursename
:
coursename
=
multicourse_settings
.
get_coursename_from_request
(
request
)
xp
=
multicourse_settings
.
get_course_xmlpath
(
coursename
)
# path to XML for the course
#
if not coursename:
#
coursename = multicourse_settings.get_coursename_from_request(request)
#
xp = multicourse_settings.get_course_xmlpath(coursename) # path to XML for the course
def
get_lcp
(
coursename
,
id
):
# Grab the XML corresponding to the request from course.xml
...
...
@@ -301,8 +300,8 @@ def quickedit_git_reload(request):
return
redirect
(
'/'
)
# get coursename if stored
coursename
=
multicourse_settings
.
get_coursename_from_request
(
request
)
xp
=
multicourse_settings
.
get_course_xmlpath
(
coursename
)
# path to XML for the course
#
coursename = multicourse_settings.get_coursename_from_request(request)
#
xp = multicourse_settings.get_course_xmlpath(coursename) # path to XML for the course
msg
=
""
if
'cancel'
in
request
.
POST
:
...
...
lms/templates/edit_circuit.html
→
lms/templates/
circuits/
edit_circuit.html
View file @
a08838a2
File moved
lms/templates/course.html
→
lms/templates/co
mmon/co
urse.html
View file @
a08838a2
File moved
lms/templates/footer.html
→
lms/templates/
common/
footer.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'
../
static_content.html'
/>
<footer>
<nav>
...
...
lms/templates/forgot_password_modal.html
→
lms/templates/
common/
forgot_password_modal.html
View file @
a08838a2
File moved
lms/templates/login_modal.html
→
lms/templates/
common/
login_modal.html
View file @
a08838a2
File moved
lms/templates/main.html
→
lms/templates/
common/
main.html
View file @
a08838a2
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'
../
static_content.html'
/>
<!DOCTYPE html>
<html>
<head>
...
...
lms/templates/navigation.html
→
lms/templates/
common/
navigation.html
View file @
a08838a2
File moved
lms/templates/signup_modal.html
→
lms/templates/
common/
signup_modal.html
View file @
a08838a2
File moved
lms/templates/accordion.html
→
lms/templates/
courseware/
accordion.html
View file @
a08838a2
File moved
lms/templates/
portal
/course_about.html
→
lms/templates/
courseware
/course_about.html
View file @
a08838a2
...
...
@@ -4,7 +4,7 @@
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
block
name=
"js_extra"
>
% if not registered:
...
...
lms/templates/courses.html
→
lms/templates/course
ware/course
s.html
View file @
a08838a2
<
%
inherit
file=
"main.html"
/>
<
%
inherit
file=
"
../common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'
../
static_content.html'
/>
<
%
block
name=
"title"
><title>
Courses
</title></
%
block>
...
...
@@ -22,17 +22,17 @@
<section
class=
"courses"
>
<section
class=
'university-column'
>
%for course in universities['MITx']:
<
%
include
file=
"course.html"
args=
"course=course"
/>
<
%
include
file=
"
../common/
course.html"
args=
"course=course"
/>
%endfor
</section>
<section
class=
'university-column'
>
%for course in universities['HarvardX']:
<
%
include
file=
"course.html"
args=
"course=course"
/>
<
%
include
file=
"
../common/
course.html"
args=
"course=course"
/>
%endfor
</section>
<section
class=
'university-column last'
>
%for course in universities['BerkeleyX']:
<
%
include
file=
"course.html"
args=
"course=course"
/>
<
%
include
file=
"
../common/
course.html"
args=
"course=course"
/>
%endfor
</section>
</section>
...
...
lms/templates/courseware.html
→
lms/templates/courseware
/courseware
.html
View file @
a08838a2
File moved
lms/templates/gradebook.html
→
lms/templates/
courseware/
gradebook.html
View file @
a08838a2
File moved
lms/templates/info.html
→
lms/templates/
courseware/
info.html
View file @
a08838a2
File moved
lms/templates/profile.html
→
lms/templates/
courseware/
profile.html
View file @
a08838a2
File moved
lms/templates/university_profile/base.html
→
lms/templates/
courseware/
university_profile/base.html
View file @
a08838a2
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<section
class=
"find-courses"
>
...
...
lms/templates/university_profile/berkeleyx.html
→
lms/templates/
courseware/
university_profile/berkeleyx.html
View file @
a08838a2
File moved
lms/templates/university_profile/harvardx.html
→
lms/templates/
courseware/
university_profile/harvardx.html
View file @
a08838a2
File moved
lms/templates/university_profile/mitx.html
→
lms/templates/
courseware/
university_profile/mitx.html
View file @
a08838a2
File moved
lms/templates/registration/activation_complete.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
...
...
lms/templates/registration/activation_invalid.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
...
...
lms/templates/email_change_successful.html
→
lms/templates/
registration/
email_change_successful.html
View file @
a08838a2
File moved
lms/templates/email_exists.html
→
lms/templates/
registration/
email_exists.html
View file @
a08838a2
File moved
lms/templates/invalid_email_key.html
→
lms/templates/
registration/
invalid_email_key.html
View file @
a08838a2
File moved
lms/templates/simplewiki/simplewiki_base.html
View file @
a08838a2
##This file is based on the template from the SimpleWiki source which carries the GPL license
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%!
...
...
lms/templates/static_templates/404.html
View file @
a08838a2
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
block
name=
"title"
><title>
404
</title></
%
block>
...
...
lms/templates/static_templates/about.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
block
name=
"title"
><title>
About edX
</title></
%
block>
...
...
lms/templates/static_templates/contact.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
block
name=
"title"
><title>
Contact edX
</title></
%
block>
...
...
lms/templates/static_templates/copyright.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
...
...
lms/templates/static_templates/faq.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
block
name=
"title"
><title>
FAQ
</title></
%
block>
...
...
lms/templates/static_templates/help.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
...
...
lms/templates/static_templates/honor.html
View file @
a08838a2
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
...
...
lms/templates/static_templates/jobs.html
View file @
a08838a2
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
block
name=
"title"
><title>
Jobs
</title></
%
block>
...
...
lms/templates/static_templates/press.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
block
name=
"title"
><title>
edX in the Press
</title></
%
block>
...
...
lms/templates/static_templates/press_releases/MIT_and_Harvard_announce_edX.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../../main.html"
/>
<
%
inherit
file=
"../../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../../static_content.html'
/>
...
...
lms/templates/static_templates/press_releases/UC_Berkeley_joins_edX.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../../main.html"
/>
<
%
inherit
file=
"../../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../../static_content.html'
/>
...
...
lms/templates/static_templates/privacy.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
...
...
lms/templates/static_templates/server-down.html
View file @
a08838a2
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<section
class=
"outside-app"
>
<h1>
Currently the
<em>
edX
</em>
servers are down
</h1>
...
...
lms/templates/static_templates/server-error.html
View file @
a08838a2
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<section
class=
"outside-app"
>
<h1>
There has been a 500 error on the
<em>
edX
</em>
servers
</h1>
...
...
lms/templates/static_templates/server-overloaded.html
View file @
a08838a2
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<section
class=
"outside-app"
>
<h1>
Currently the
<em>
MITx
</em>
servers are overloaded
</h1>
...
...
lms/templates/static_templates/tos.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
inherit
file=
"../
common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
...
...
lms/templates/dashboard.html
→
lms/templates/
student/
dashboard.html
View file @
a08838a2
...
...
@@ -2,9 +2,9 @@
from
django
.
core
.
urlresolvers
import
reverse
from
courseware
.
courses
import
course_image_url
,
get_course_about_section
%
>
<
%
inherit
file=
"main.html"
/>
<
%
inherit
file=
"
../common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'
../
static_content.html'
/>
<
%
block
name=
"title"
><title>
Dashboard
</title></
%
block>
...
...
lms/templates/index.html
→
lms/templates/
student/
index.html
View file @
a08838a2
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
time
import
strftime
%
>
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
inherit
file=
"
../common/
main.html"
/>
<
%
namespace
name=
'static'
file=
'
../
static_content.html'
/>
<section
class=
"home"
>
<header>
...
...
@@ -79,17 +79,17 @@
<section
class=
"courses"
>
<section
class=
'university-column'
>
%for course in universities['MITx']:
<
%
include
file=
"course.html"
args=
"course=course"
/>
<
%
include
file=
"
../common/
course.html"
args=
"course=course"
/>
%endfor
</section>
<section
class=
'university-column'
>
%for course in universities['HarvardX']:
<
%
include
file=
"course.html"
args=
"course=course"
/>
<
%
include
file=
"
../common/
course.html"
args=
"course=course"
/>
%endfor
</section>
<section
class=
'university-column last'
>
%for course in universities['BerkeleyX']:
<
%
include
file=
"course.html"
args=
"course=course"
/>
<
%
include
file=
"
../common/
course.html"
args=
"course=course"
/>
%endfor
</section>
</section>
...
...
lms/templates/name_changes.html
→
lms/templates/
student/
name_changes.html
View file @
a08838a2
File moved
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