Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
5107:1e10ddbf5c87 | 5108:21170bf1e76b |
---|---|
56 </noscript> | 56 </noscript> |
57 </form>} | 57 </form>} |
58 </div> | 58 </div> |
59 | 59 |
60 <ol class="chat-logs">{lines# | 60 <ol class="chat-logs">{lines# |
61 <li {item.lang&lang="{item.lang}"} class="{item.st_name} {item.st_type?} {item.edited&edited}" id="{item.archive_id}"> | 61 <li class="{item.st_name} {item.st_type?} {item.edited&edited}" id="{item.archive_id}"> |
62 <b class="nick">{item.nick}</b> | 62 <b class="nick">{item.nick}</b> |
63 <em class="verb">{item.verb?}</em> | 63 <em class="verb">{item.verb?}</em> |
64 <a class="time" href="#{item.archive_id}"><time id="{item.time}" datetime="{item.datetime}">{item.time}</time></a> | 64 <a class="time" href="#{item.archive_id}"><time id="{item.time}" datetime="{item.datetime}">{item.time}</time></a> |
65 <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> | 65 <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> |
66 {item.reactions%<span class="reaction">{idx} {item}</span>} | 66 {item.reactions%<span class="reaction">{idx} {item}</span>} |
67 {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>} | 67 {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>} |
68 </li>} | 68 </li>} |
69 </ol> | 69 </ol> |
70 </main> | 70 </main> |