Mercurial > libervia-templates
comparison sat_templates/templates/bulma/base/base.html @ 237:caa3767707fb
base/base.html: expose CSRF token to script + fixed script content
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jun 2020 17:57:01 +0200 |
parents | 0e69b5843c2f |
children | a62822c6a114 |
comparison
equal
deleted
inserted
replaced
236:7345ccb7f9df | 237:caa3767707fb |
---|---|
56 <style type="text/css"> | 56 <style type="text/css"> |
57 {{dynamic_style}} | 57 {{dynamic_style}} |
58 </style> | 58 </style> |
59 {% endif %} | 59 {% endif %} |
60 | 60 |
61 {% if csrf_token is defined %} | |
62 <script>var csrf_token = "{{csrf_token}}";</script> | |
63 {% endif %} | |
64 | |
61 {{ script.generate_scripts() }} | 65 {{ script.generate_scripts() }} |
62 | 66 |
63 {% for script in scripts %} | 67 {% for script in scripts %} |
64 <script{{ {'src': script.src, 'type': script.type} | xmlattr }}>{{script.content}}</script> | 68 <script{{ {'src': script.src, 'type': script.type} | xmlattr }}>{{script.content|safe}}</script> |
65 {% endfor %} | 69 {% endfor %} |
66 | 70 |
67 {% block favicon %} | 71 {% block favicon %} |
68 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png"> | 72 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png"> |
69 {% endblock favicon %} | 73 {% endblock favicon %} |