Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.web
Commits
ee648b42
Commit
ee648b42
authored
Apr 23, 2016
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ui] Set format_html to simple_tag output to conform to Django 1.9
parent
acd8a568
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
beat/web/ui/templatetags/ui_tags.py
beat/web/ui/templatetags/ui_tags.py
+3
-3
No files found.
beat/web/ui/templatetags/ui_tags.py
View file @
ee648b42
...
...
@@ -27,6 +27,7 @@
from
django
import
template
from
django.conf
import
settings
from
django.utils.html
import
format_html
from
...common.texts
import
Messages
as
Texts
from
...
import
__version__
from
collections
import
OrderedDict
...
...
@@ -223,7 +224,7 @@ def code_editor_scripts(modes):
js
=
[
'<script src="%s%s?v%s" type="text/javascript" charset="utf-8"></script>'
%
(
settings
.
STATIC_URL
,
k
,
__version__
)
for
k
in
js
]
return
'
\
n
'
.
join
(
js
)
return
format_html
(
'
\
n
'
.
join
(
js
)
)
#--------------------------------------------------
...
...
@@ -240,8 +241,7 @@ def code_editor_css():
if
settings
.
CODEMIRROR_THEME
!=
'default'
:
css
.
append
(
'%s/theme/%s.css'
%
(
settings
.
CODEMIRROR_PATH
,
settings
.
CODEMIRROR_THEME
))
return
'
\
n
'
.
join
(
map
(
lambda
x
:
'<link rel="stylesheet" href="%s%s?v%s" type="text/css" media="screen" />'
%
\
(
settings
.
STATIC_URL
,
x
,
__version__
),
css
))
return
format_html
(
'
\
n
'
.
join
(
map
(
lambda
x
:
'<link rel="stylesheet" href="%s%s?v%s" type="text/css" media="screen" />'
%
(
settings
.
STATIC_URL
,
x
,
__version__
),
css
)))
#--------------------------------------------------
...
...
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