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
864861a7
Commit
864861a7
authored
Jun 05, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added MITX_FEATURES['USE_DJANGO_PIPELINE'] to env.common, fix main.html accordingly
parent
65935a27
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
13 deletions
+25
-13
envs/common.py
+2
-1
envs/dev_ike.py
+2
-0
templates/main.html
+18
-10
templates/mathjax_include.html
+3
-2
No files found.
envs/common.py
View file @
864861a7
...
...
@@ -34,7 +34,8 @@ PERFSTATS = False
# Features
MITX_FEATURES
=
{
'SAMPLE'
:
False
'SAMPLE'
:
False
,
'USE_DJANGO_PIPELINE'
:
True
,
}
# Used for A/B testing
...
...
envs/dev_ike.py
View file @
864861a7
...
...
@@ -27,6 +27,8 @@ DEBUG = True
ENABLE_MULTICOURSE
=
True
# set to False to disable multicourse display (see lib.util.views.mitxhome)
QUICKEDIT
=
True
MITX_FEATURES
[
'USE_DJANGO_PIPELINE'
]
=
False
COURSE_SETTINGS
=
{
'6.002_Spring_2012'
:
{
'number'
:
'6.002x'
,
'title'
:
'Circuits and Electronics'
,
'xmlpath'
:
'/6002x/'
,
...
...
templates/main.html
View file @
864861a7
...
...
@@ -6,27 +6,35 @@
<link
rel=
"stylesheet"
href=
"${static.url('js/jquery.treeview.css')}"
type=
"text/css"
media=
"all"
/>
## these two lines are broken (28may12)
##
<
%
static:css
group=
'application'
/>
##
<
%
static:js
group=
'application'
/>
## replace with this one line
## these two lines need to run django-pipeline / sass
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<
%
static:css
group=
'application'
/>
<
%
static:js
group=
'application'
/>
% endif
## use this in case django-pipeline is broken
% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<link
rel=
"stylesheet"
href=
"/static/sass/application.css"
type=
"text/css"
media=
"all"
/ >
% endif
<script
type=
"text/javascript"
src=
"${static.url('js/jquery-1.6.2.min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/jquery-ui-1.8.16.custom.min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/swfobject/swfobject.js')}"
></script>
<link
rel=
"stylesheet"
href=
"/static/css/codemirror.css"
type=
"text/css"
media=
"all"
/>
##
<script
type=
"text/javascript"
src=
"${ settings.LIB_URL }codemirror-compressed.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/lib/codemirror.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/mode/xml/xml.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/mode/python/python.js"
></script>
<script
type=
"text/javascript"
src=
"${ settings.LIB_URL }codemirror-compressed.js"
></script>
## alternate codemirror
##
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/lib/codemirror.js"
></script>
##
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/mode/xml/xml.js"
></script>
##
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/mode/python/python.js"
></script>
## and these four lines
## use these four lines if django-pipeline is broken
% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<script
type=
"text/javascript"
src=
"/static/coffee/src/courseware.js"
></script>
<script
type=
"text/javascript"
src=
"/static/coffee/src/feedback_form.js"
></script>
<script
type=
"text/javascript"
src=
"/static/coffee/src/calculator.js"
></script>
<script
type=
"text/javascript"
src=
"/static/coffee/src/main.js"
></script>
% endif
## image input: for clicking on images (see imageinput.html)
<script
type=
"text/javascript"
src=
"/static/js/imageinput.js"
></script>
...
...
templates/mathjax_include.html
View file @
864861a7
...
...
@@ -82,7 +82,9 @@ function DoUpdateMath(inputId) {
<!-- This must appear after all mathjax-config blocks, so it is after the imports from the other templates -->
<!-- TODO: move to settings -->
## next two lines are alternate mathjax sources and configurations
##
<script
type=
"text/javascript"
src=
"http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-MML-AM_HTMLorMML-full"
>
##
<
script
type
=
"text/javascript"
src
=
"/static/js/mathjax-MathJax-c9db6ac/MathJax.js?config=TeX-AMS_HTML-full"
>
</script>
<script
type=
"text/javascript"
src=
"/static/js/mathjax-MathJax-c9db6ac/MathJax.js?config=TeX-MML-AM_HTMLorMML-full"
></script>
</script>
\ No newline at end of file
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