changeset 6093944fd75c in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset;node=6093944fd75c
description:
Quote background-image url
diffstat:
templates/utils.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 3f45947ec7ae -r 6093944fd75c templates/utils.html
--- a/templates/utils.html Fri Apr 12 23:49:52 2019 +0200
+++ b/templates/utils.html Mon Apr 15 12:09:02 2019 +0200
@@ -1,16 +1,16 @@
{% macro background(name) %}
<style>
.background-{{ name }} {
- background-image: url({{ url_for('static', filename='images/%s.jpg' %
name) }});
+ background-image: url('{{ url_for('static', filename='images/%s.jpg' %
name) }}');
}
@media (max-width: 800px) {
.background-{{ name }} {
- background-image: url({{ url_for('static',
filename='images/%s-800px.jpg' % name) }});
+ background-image: url('{{ url_for('static',
filename='images/%s-800px.jpg' % name) }}');
}
}
@media (max-width: 400px) {
.background-{{ name }} {
- background-image:url({{ url_for('static',
filename='images/%s-400px.jpg' % name) }});
+ background-image:url('{{ url_for('static',
filename='images/%s-400px.jpg' % name) }}');
}
}
</style>