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
8080261a
Commit
8080261a
authored
May 20, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generate raw URLs that are not rewritten by static_replace
parent
0c1b045f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
common/djangoapps/pipeline_mako/templates/static_content.html
+4
-4
lms/templates/textannotation.html
+4
-4
No files found.
common/djangoapps/pipeline_mako/templates/static_content.html
View file @
8080261a
...
...
@@ -3,19 +3,19 @@ from staticfiles.storage import staticfiles_storage
from
pipeline_mako
import
compressed_css
,
compressed_js
%
>
<
%
def
name=
'url(file)'
><
%
<
%
def
name=
'url(file
, raw=False
)'
><
%
try:
url =
staticfiles_storage.url(file)
except:
url =
file
%
>
${url}
</
%
def>
%
>
${url}
${"?raw" if raw else ""}
</
%
def>
<
%
def
name=
'css(group)'
>
<
%
def
name=
'css(group
, raw=False
)'
>
% if settings.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"
/ >
<link
rel=
"stylesheet"
href=
"${staticfiles_storage.url(filename.replace('.scss', '.css'))}
${"
?
raw
"
if
raw
else
""}
"
type=
"text/css"
media=
"all"
/ >
% endfor
%endif
</
%
def>
...
...
lms/templates/textannotation.html
View file @
8080261a
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
static:css
group=
'style-vendor-tinymce-content'
/>
<
%
static:css
group=
'style-vendor-tinymce-skin'
/>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/tinymce/js/tinymce/tinymce.full.min.js')}"
/>
<
script
type
=
"text/javascript"
src
=
"${static.url('js/vendor/tinymce/js/tinymce/jquery.tinymce.min.js')}"
/>
<
%
static:css
group=
'style-vendor-tinymce-content'
raw=
True
/>
<
%
static:css
group=
'style-vendor-tinymce-skin'
raw=
True
/>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/tinymce/js/tinymce/tinymce.full.min.js'
, raw=True
)}"
/>
<
script
type
=
"text/javascript"
src
=
"${static.url('js/vendor/tinymce/js/tinymce/jquery.tinymce.min.js'
, raw=True
)}"
/>
<
div
class
=
"annotatable-wrapper"
>
<
div
class
=
"annotatable-header"
>
...
...
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