Mercurial > prosody-modules
changeset 3714:04ff0de40ba9
mod_http_muc_log: Add date metadata to log pages
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 13 Oct 2019 16:00:16 +0200 |
parents | 53fc4b612fb2 |
children | f03a023cd523 |
files | mod_http_muc_log/http_muc_log.html mod_http_muc_log/mod_http_muc_log.lua |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_muc_log/http_muc_log.html Sat Oct 12 19:42:37 2019 +0200 +++ b/mod_http_muc_log/http_muc_log.html Sun Oct 13 16:00:16 2019 +0200 @@ -3,6 +3,7 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> +{date&<meta name="dcterms.date" content="{date}">} <title>{title}</title> <style> :link,:visited{color:#3465a4;text-decoration:none;}
--- a/mod_http_muc_log/mod_http_muc_log.lua Sat Oct 12 19:42:37 2019 +0200 +++ b/mod_http_muc_log/mod_http_muc_log.lua Sun Oct 13 16:00:16 2019 +0200 @@ -377,6 +377,7 @@ response.headers.content_type = "text/html; charset=utf-8"; return render(template, { title = ("%s - %s"):format(get_room(room):get_name(), date); + date = date; jid = get_room(room).jid; jid_node = jid_split(get_room(room).jid); hide_presence = hide_presence(request);