Comparison

mod_http_muc_log/mod_http_muc_log.lua @ 4034:a359972d246e

mod_http_muc_log: Add link to room list from logs page Improve UX by reducing in number of clicks to get back to the room list. Uncommitted diff from logs.xmpp.org
author Kim Alvefur <zash@zash.se>
date Tue, 26 May 2020 21:32:55 +0200
parent 3893:3f20b7c88afb
child 4182:1890115b2773
comparison
equal deleted inserted replaced
4033:7b6bcb91493e 4034:a359972d246e
380 module:log("debug", "Previous message: %s", prev_when); 380 module:log("debug", "Previous message: %s", prev_when);
381 end 381 end
382 end 382 end
383 383
384 local links = { 384 local links = {
385 { href = "../", rel = "up", text = "Room list" },
385 { href = "./", rel = "up", text = "Calendar" }, 386 { href = "./", rel = "up", text = "Calendar" },
386 }; 387 };
387 if prev_when ~= "" then 388 if prev_when ~= "" then
388 table.insert(links, { href = prev_when, rel = "prev", text = prev_when}); 389 table.insert(links, { href = prev_when, rel = "prev", text = prev_when});
389 end 390 end