comparison sat_templates/templates/bulma/base/base.html @ 355:ff67c700405e

remove websocket legacy code: It is not needed anymore as websocket are not handled with Brython
author Goffi <goffi@goffi.org>
date Thu, 30 Mar 2023 17:00:45 +0200
parents 6a26c8a43d10
children
comparison
equal deleted inserted replaced
354:cac1a96f3df8 355:ff67c700405e
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 %} 73 {% if websocket is defined %}
75 {{ script.include('websocket', '') }} 74 <script>var ws_url = "{{websocket.url}}"; var ws_token="{{websocket.token}}"; var ws_debug={{websocket.debug}};</script>
76 {% endif %} 75 {% endif %}
77 76
78 {{ script.generate_scripts() }} 77 {{ script.generate_scripts() }}
79 78
80 {% for script in scripts %} 79 {% for script in scripts %}
81 <script{{ {'src': script.src, 'type': script.type} | xmlattr }}>{{script.content|safe}}</script> 80 <script{{ {'src': script.src, 'type': script.type} | xmlattr }}>{{script.content|safe}}</script>
82 {% endfor %} 81 {% 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 %}
88 82
89 {% block favicon %} 83 {% block favicon %}
90 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png"> 84 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png">
91 {% endblock favicon %} 85 {% endblock favicon %}
92 </head> 86 </head>