Mercurial > prosody-modules
diff mod_http_muc_log/res/http_muc_log.html @ 5108:21170bf1e76b
mod_http_muc_log: Move language attribute onto body itself
One could argue that it's mostly the message that is in a particular
language, while the timestamp is less so. What language a particular
nickname is, and its relation to the language in the text, that is an
unresolved question.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 04 Dec 2022 23:16:34 +0100 |
parents | 1e10ddbf5c87 |
children | df483d9056f5 |
line wrap: on
line diff
--- a/mod_http_muc_log/res/http_muc_log.html Sun Dec 04 23:16:31 2022 +0100 +++ b/mod_http_muc_log/res/http_muc_log.html Sun Dec 04 23:16:34 2022 +0100 @@ -58,11 +58,11 @@ </div> <ol class="chat-logs">{lines# -<li {item.lang&lang="{item.lang}"} class="{item.st_name} {item.st_type?} {item.edited&edited}" id="{item.archive_id}"> +<li class="{item.st_name} {item.st_type?} {item.edited&edited}" id="{item.archive_id}"> <b class="nick">{item.nick}</b> <em class="verb">{item.verb?}</em> <a class="time" href="#{item.archive_id}"><time id="{item.time}" datetime="{item.datetime}">{item.time}</time></a> -<p class="body">{item.edited&<del>}{item.body?}{item.edited&</del> <a href="#{item.edited}" title="jump to corrected version">✎</a>}{item.edit& <a href="#{item.edit}" title="jump to previous version">✏</a>}{item.reply& <a href="#{item.reply}" title="jump to message responded to">↺</a>}</p> +<p {item.lang&lang="{item.lang}"} class="body">{item.edited&<del>}{item.body?}{item.edited&</del> <a href="#{item.edited}" title="jump to corrected version">✎</a>}{item.edit& <a href="#{item.edit}" title="jump to previous version">✏</a>}{item.reply& <a href="#{item.reply}" title="jump to message responded to">↺</a>}</p> {item.reactions%<span class="reaction">{idx} {item}</span>} {item.oob.url&<figure><a rel="nofollow" href="{item.oob.url?}"><img alt="{item.oob.desc?}" src="{item.oob.url?}"/></a><figcaption>{item.oob.desc?}</figcaption></figure>} </li>}