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
6007f9f1
Commit
6007f9f1
authored
Jul 23, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consolidate code used for disabling USE_DJANGO_PIPELINE feature
parent
fe5cdb5b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
41 deletions
+20
-41
cms/templates/base.html
+0
-9
common/djangoapps/pipeline_mako/templates/static_content.html
+20
-2
lms/templates/courseware.html
+0
-9
lms/templates/main.html
+0
-21
No files found.
cms/templates/base.html
View file @
6007f9f1
...
...
@@ -6,11 +6,7 @@
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<
%
static:css
group=
'base-style'
/>
% else:
<link
rel=
"stylesheet"
href=
"${static.url('css/base-style.css')}"
>
% endif
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('js/vendor/markitup/skins/simple/style.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('js/vendor/markitup/sets/wiki/style.css')}"
/>
<title><
%
block
name=
"title"
></
%
block></title>
...
...
@@ -27,12 +23,7 @@
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/backbone-min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/markitup/jquery.markitup.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/markitup/sets/wiki/set.js')}"
></script>
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<
%
static:js
group=
'main'
/>
% else:
<script
src=
"${ STATIC_URL }/js/main.js"
></script>
% endif
<
%
static:js
group=
'module-js'
/>
<script
src=
"${static.url('js/vendor/jquery.inlineedit.js')}"
></script>
<script
src=
"${static.url('js/vendor/jquery.cookie.js')}"
></script>
...
...
common/djangoapps/pipeline_mako/templates/static_content.html
View file @
6007f9f1
...
...
@@ -5,6 +5,24 @@ from static_replace import replace_urls
%
>
<
%
def
name=
'url(file)'
>
${staticfiles_storage.url(file)}
</
%
def>
<
%
def
name=
'css(group)'
>
${compressed_css(group)}
</
%
def>
<
%
def
name=
'js(group)'
>
${compressed_js(group)}
</
%
def>
<
%
def
name=
'css(group)'
>
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
${compressed_css(group)}
% else:
% for filename in settings.PIPELINE_CSS[group]['source_filenames']:
<link
rel=
"stylesheet"
href=
"${staticfiles_storage.url(filename.replace('.scss', '.css'))}"
type=
"text/css"
media=
"all"
/ >
% endfor
%endif
</
%
def>
<
%
def
name=
'js(group)'
>
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
${compressed_js(group)}
% else:
% for filename in settings.PIPELINE_JS[group]['source_filenames']:
<script
type=
"text/javascript"
src=
"${staticfiles_storage.url(filename.replace('.coffee', '.js'))}"
></script>
% endfor
%endif
</
%
def>
<
%
def
name=
'replace_urls(text)'
>
${replace_urls(text)}
</
%
def>
lms/templates/courseware.html
View file @
6007f9f1
...
...
@@ -24,16 +24,7 @@
<script
type=
"text/javascript"
src=
"${static.url('js/schematic.js')}"
></script>
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<
%
static:js
group=
'courseware'
/>
% endif
% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
% for jsfn in [ '/static/%s' % x.replace('.coffee','.js') for x in settings.PIPELINE_JS['courseware']['source_filenames'] ]:
<script
type=
"text/javascript"
src=
"${jsfn}"
></script>
% endfor
% endif
<
%
include
file=
"mathjax_include.html"
/>
</
%
block>
...
...
lms/templates/main.html
View file @
6007f9f1
...
...
@@ -8,34 +8,13 @@
<link
href=
'http://fonts.googleapis.com/css?family=Open+Sans:800italic,400,800'
rel=
'stylesheet'
type=
'text/css'
>
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<
%
static:css
group=
'application'
/>
<!--[if lt IE 9]>
<%static:css group='ie-fixes'/>
<![endif]-->
% endif
% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<link
rel=
"stylesheet"
href=
"/static/sass/application.css"
type=
"text/css"
media=
"all"
/ >
<!--[if lt IE 9]>
<link rel="stylesheet" href="/static/sass/ie.css" type="text/css" media="all" / >
<![endif]-->
% endif
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<
%
static:js
group=
'main_vendor'
/>
<
%
static:js
group=
'application'
/>
% endif
% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
% for jsfn in [ '/static/%s' % x.replace('.coffee','.js') for x in settings.PIPELINE_JS['main_vendor']['source_filenames'] ]:
<script
type=
"text/javascript"
src=
"${jsfn}"
></script>
% endfor
% for jsfn in [ '/static/%s' % x.replace('.coffee','.js') for x in settings.PIPELINE_JS['application']['source_filenames'] ]:
<script
type=
"text/javascript"
src=
"${jsfn}"
></script>
% endfor
% endif
<!--[if lt IE 9]>
<script src="${static.url('js/html5shiv.js')}"></script>
...
...
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