42 lines
1.2 KiB
Django/Jinja
42 lines
1.2 KiB
Django/Jinja
{% 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" />
|
|
<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>
|
|
<title>{{ title or claim }}</title>
|
|
</head>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<converse-root id="conversejs"></converse-root>
|
|
{% endblock %}
|
|
|
|
{% block postfix %}
|
|
<script>
|
|
converse.initialize({
|
|
assets_path: "/resources/converse/dist/",
|
|
{% if bosh_url %}
|
|
bosh_service_url: "{{ bosh_url }}",
|
|
{% endif %}
|
|
{% if websocket_url %}
|
|
websocket_url: "{{ websocket_url }}",
|
|
{% endif %}
|
|
view_mode: 'embedded',
|
|
allow_dragresize: false,
|
|
loglevel: 'warn',
|
|
blacklisted_plugins: [
|
|
'converse-register',
|
|
],
|
|
{% if jid and password %}
|
|
auto_login: true,
|
|
jid: '{{ jid }}',
|
|
password: '{{ password }}'
|
|
{% endif %}
|
|
});
|
|
</script>
|
|
{% endblock %}
|