mod_http_muc_log: Add date metadata to log pages
authorKim Alvefur <zash@zash.se>
Sun, 13 Oct 2019 16:00:16 +0200
changeset 3718 04ff0de40ba9
parent 3717 53fc4b612fb2
child 3719 f03a023cd523
mod_http_muc_log: Add date metadata to log pages
mod_http_muc_log/http_muc_log.html
mod_http_muc_log/mod_http_muc_log.lua
--- 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);