comparison default/base/base.html @ 19:422c54e0204a

event: adaptation to changes in backend/Libervia + background_image can now be specified in template data
author Goffi <goffi@goffi.org>
date Fri, 19 May 2017 12:59:43 +0200
parents 7a1626e78d53
children 8fa2fd2e928e
comparison
equal deleted inserted replaced
18:d4a8afa7b590 19:422c54e0204a
11 {% else %} 11 {% else %}
12 {% for css_file in css_files %} 12 {% for css_file in css_files %}
13 <link rel='stylesheet' type="text/css" href='{{root_path}}{{css_file}}'> 13 <link rel='stylesheet' type="text/css" href='{{root_path}}{{css_file}}'>
14 {% endfor %} 14 {% endfor %}
15 {% endif %} 15 {% endif %}
16 {% if background_image is defined %}
17 {# Q&D workaround to implement dynamic background-image
18 it should be replaced by a better mechanism in the future, avoid using it #}
19 <style type="text/css">
20 html {
21 background-image: url('{{background_image}}');
22 background-size: 15em;
23 }
24 </style>
25 {% endif %}
16 </head> 26 </head>
17 <body> 27 <body>
18 <div id="body"> 28 <div id="body">
19 {% block body %} 29 {% block body %}
20 {% endblock body %} 30 {% endblock body %}