2021-10-11 11:45:32 +00:00
|
|
|
{% extends "main.jinja" %}
|
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="/resources/main.scss" />
|
2021-12-24 02:26:59 +00:00
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="/resources/converse/dist/converse.min.css">
|
|
|
|
<script src="/resources/converse/dist/converse.js" charset="utf-8"></script>
|
2021-10-11 11:45:32 +00:00
|
|
|
<title>{{ title or claim }}</title>
|
|
|
|
</head>
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-12-24 02:26:59 +00:00
|
|
|
{% block content %}
|
|
|
|
<converse-root id="conversejs"></converse-root>
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-10-11 11:45:32 +00:00
|
|
|
{% block postfix %}
|
|
|
|
<script>
|
|
|
|
converse.initialize({
|
2022-08-14 17:20:00 +00:00
|
|
|
assets_path: "/resources/converse/dist/",
|
|
|
|
{% if bosh_url %}
|
2021-10-11 11:45:32 +00:00
|
|
|
bosh_service_url: "{{ bosh_url }}",
|
2022-08-14 17:20:00 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if websocket_url %}
|
|
|
|
websocket_url: "{{ websocket_url }}",
|
|
|
|
{% endif %}
|
2021-12-24 02:26:59 +00:00
|
|
|
view_mode: 'embedded',
|
|
|
|
allow_dragresize: false,
|
2022-08-14 17:35:11 +00:00
|
|
|
loglevel: 'warn',
|
2022-08-14 17:33:58 +00:00
|
|
|
blacklisted_plugins: [
|
|
|
|
'converse-register',
|
|
|
|
],
|
2021-11-14 03:55:48 +00:00
|
|
|
{% if jid and password %}
|
|
|
|
auto_login: true,
|
|
|
|
jid: '{{ jid }}',
|
|
|
|
password: '{{ password }}'
|
|
|
|
{% endif %}
|
2021-10-11 11:45:32 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|