diff 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
line wrap: on
line diff
--- a/default/base/base.html	Thu May 04 01:00:29 2017 +0200
+++ b/default/base/base.html	Fri May 19 12:59:43 2017 +0200
@@ -13,6 +13,16 @@
             <link rel='stylesheet' type="text/css" href='{{root_path}}{{css_file}}'>
         {% endfor %}
     {% endif %}
+    {% if background_image is defined %}
+        {# Q&D workaround to implement dynamic background-image
+           it should be replaced by a better mechanism in the future, avoid using it #}
+        <style type="text/css">
+            html {
+                background-image: url('{{background_image}}');
+                background-size: 15em;
+            }
+        </style>
+    {% endif %}
 </head>
 <body>
     <div id="body">