--- a/mod_conversejs/mod_conversejs.lua Thu Oct 01 16:20:09 2020 +0200
+++ b/mod_conversejs/mod_conversejs.lua Thu Oct 01 17:49:10 2020 +0200
@@ -48,7 +48,7 @@
local html_template;
do
- local template_filename = module:get_option_string(module.name .. "_html_template", "template.html");
+ local template_filename = module:get_option_string(module.name .. "_html_template", "templates/template.html");
local template_file, err = module:load_resource(template_filename);
if template_file then
html_template, err = template_file:read("*a");
@@ -65,7 +65,7 @@
local js_template;
do
- local template_filename = module:get_option_string(module.name .. "_js_template", "template.js");
+ local template_filename = module:get_option_string(module.name .. "_js_template", "templates/template.js");
local template_file, err = module:load_resource(template_filename);
if template_file then
js_template, err = template_file:read("*a");
--- a/mod_conversejs/template.html Thu Oct 01 16:20:09 2020 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-{header_style#
-<link rel="stylesheet" type="text/css" media="screen" href="{item}"/>}
-{header_scripts#
-<script charset="utf-8" src="{item}"></script>}
-<title>{service_name?Prosody IM and Converse.js}</title>
-{header_tags#
-{item!}}
-</head>
-<body>
-<noscript>
-<h1>Converse.js</h1>
-<p>I'm sorry, but this XMPP client application won't work without JavaScript.</p>
-<p>Perhaps you would like to try one of these clients:</p>
-<dl>
-<dt>Desktop</dt>
-<dd><ul>
-<li><a href="https://gajim.org/">Gajim</a></li>
-<li><a href="https://poez.io/">Poezio</a></li>
-<li><a href="https://swift.im/">Swift</a></li>
-</ul></dd>
-<dt>Mobile</dt>
-<dd><ul>
-<li><a href="https://github.com/siacs/Conversations">Conversations</a></li>
-<li><a href="https://yaxim.org/">Yaxim</a></li>
-</ul></dd>
-</dl>
-<p><a href="https://xmpp.org/software/clients.html">More clients...</a></p>
-</noscript>
-<script>{conversejs.startup.script!}</script>
-</body>
-</html>
--- a/mod_conversejs/template.js Thu Oct 01 16:20:09 2020 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-if(typeof converse == 'undefined') {
- var div = document.createElement("div");
- var noscript = document.getElementsByTagName("noscript")[0];
- div.innerHTML = noscript.innerText;
- document.body.appendChild(div);
-} else {
- converse.initialize(%s);
-}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mod_conversejs/templates/template.html Thu Oct 01 17:49:10 2020 +0200
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+{header_style#
+<link rel="stylesheet" type="text/css" media="screen" href="{item}"/>}
+{header_scripts#
+<script charset="utf-8" src="{item}"></script>}
+<title>{service_name?Prosody IM and Converse.js}</title>
+{header_tags#
+{item!}}
+</head>
+<body>
+<noscript>
+<h1>Converse.js</h1>
+<p>I'm sorry, but this XMPP client application won't work without JavaScript.</p>
+<p>Perhaps you would like to try one of these clients:</p>
+<dl>
+<dt>Desktop</dt>
+<dd><ul>
+<li><a href="https://gajim.org/">Gajim</a></li>
+<li><a href="https://poez.io/">Poezio</a></li>
+<li><a href="https://swift.im/">Swift</a></li>
+</ul></dd>
+<dt>Mobile</dt>
+<dd><ul>
+<li><a href="https://github.com/siacs/Conversations">Conversations</a></li>
+<li><a href="https://yaxim.org/">Yaxim</a></li>
+</ul></dd>
+</dl>
+<p><a href="https://xmpp.org/software/clients.html">More clients...</a></p>
+</noscript>
+<script>{conversejs.startup.script!}</script>
+</body>
+</html>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mod_conversejs/templates/template.js Thu Oct 01 17:49:10 2020 +0200
@@ -0,0 +1,8 @@
+if(typeof converse == 'undefined') {
+ var div = document.createElement("div");
+ var noscript = document.getElementsByTagName("noscript")[0];
+ div.innerHTML = noscript.innerText;
+ document.body.appendChild(div);
+} else {
+ converse.initialize(%s);
+}