Mercurial > prosody-modules
changeset 3599:42fa833169bb
mod_conversejs: Make title configurable (fixes #1362)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 May 2019 08:45:44 +0200 |
parents | 1921ae4449b8 |
children | f32efd448794 |
files | mod_conversejs/mod_conversejs.lua mod_conversejs/template.html |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua Thu May 16 08:45:41 2019 +0200 +++ b/mod_conversejs/mod_conversejs.lua Thu May 16 08:45:44 2019 +0200 @@ -93,6 +93,7 @@ event.response.headers.content_type = "text/html"; return render(html_template, { + service_name = module:get_option_string("name"); header_scripts = { js_url }; header_style = { css_url }; header_tags = add_tags;
--- a/mod_conversejs/template.html Thu May 16 08:45:41 2019 +0200 +++ b/mod_conversejs/template.html Thu May 16 08:45:44 2019 +0200 @@ -6,7 +6,7 @@ <link rel="stylesheet" type="text/css" media="screen" href="{item}"/>} {header_scripts# <script charset="utf-8" src="{item}"></script>} -<title>Prosody IM and Converse.js</title> +<title>{service_name?Prosody IM and Converse.js}</title> {header_tags# {item!}} </head>