diff default/base/base.html @ 1:b13a26d55c64

base: updated CSS handling to follow changes in backend, moved CSS file to /static with splitted files
author Goffi <goffi@goffi.org>
date Sun, 05 Mar 2017 23:25:02 +0100
parents 9a31d2c02f47
children 7a1626e78d53
line wrap: on
line diff
--- a/default/base/base.html	Tue Feb 21 20:31:01 2017 +0100
+++ b/default/base/base.html	Sun Mar 05 23:25:02 2017 +0100
@@ -3,12 +3,14 @@
 <head>
     <meta charset="utf-8" />
     <title>{% block title %}{{C.APP_NAME}}{% endblock %}</title>
-    {% if css_inline %}
+    {% if css_content is defined %}
         <style type="text/css">
             {{css_content}}
         </style>
     {% else %}
-        <link rel='stylesheet' type="text/css" href='static/style.css'>
+        {% for css_file in css_files %}
+            <link rel='stylesheet' type="text/css" href='{{root_path}}{{css_file}}'>
+        {% endfor %}
     {% endif %}
 </head>
 <body>