comparison sat_templates/templates/bulma/base/base.html @ 329:6a26c8a43d10

bulma (chat): fix chat: those change are done to have a minimal chat working, but it's really basic. A full-featured chat should come in a future version.
author Goffi <goffi@goffi.org>
date Fri, 07 May 2021 15:38:10 +0200
parents 34b8de7be336
children ff67c700405e
comparison
equal deleted inserted replaced
328:bfb0d5829728 329:6a26c8a43d10
68 68
69 {% if csrf_token is defined %} 69 {% if csrf_token is defined %}
70 <script>var csrf_token = "{{csrf_token}}"; var session_uuid="{{session_uuid}}";</script> 70 <script>var csrf_token = "{{csrf_token}}"; var session_uuid="{{session_uuid}}";</script>
71 {% endif %} 71 {% endif %}
72 72
73 {# FIXME: websocket handling is to be replaced by Brython #}
74 {% if websocket is defined %}
75 {{ script.include('websocket', '') }}
76 {% endif %}
77
73 {{ script.generate_scripts() }} 78 {{ script.generate_scripts() }}
74 79
75 {% for script in scripts %} 80 {% for script in scripts %}
76 <script{{ {'src': script.src, 'type': script.type} | xmlattr }}>{{script.content|safe}}</script> 81 <script{{ {'src': script.src, 'type': script.type} | xmlattr }}>{{script.content|safe}}</script>
77 {% endfor %} 82 {% endfor %}
83
84 {# FIXME: websocket handling is to be replaced by Brython #}
85 {% if websocket is defined %}
86 <script>var socket=new WSHandler("{{websocket.url}}", "{{websocket.token}}", {{websocket.debug}});</script>
87 {% endif %}
78 88
79 {% block favicon %} 89 {% block favicon %}
80 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png"> 90 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png">
81 {% endblock favicon %} 91 {% endblock favicon %}
82 </head> 92 </head>