Software /
code /
prosody-modules
Diff
mod_http_muc_log/http_muc_log.html @ 3703:7244ff1d62a8
mod_http_muc_log: Expose xml:lang from each message/body #a11y
Individual messages may be in a different language than the main
language of the room.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 09 Oct 2019 21:35:13 +0200 |
parent | 3702:caf27826c7b2 |
child | 3704:c6563625f60e |
line wrap: on
line diff
--- a/mod_http_muc_log/http_muc_log.html Wed Oct 09 21:36:23 2019 +0200 +++ b/mod_http_muc_log/http_muc_log.html Wed Oct 09 21:35:13 2019 +0200 @@ -91,7 +91,7 @@ </div> <ol class="chat-logs">{lines# -<li class="{item.st_name} {item.st_type?}" id="{item.key}"> +<li {item.lang&lang="{item.lang}"} class="{item.st_name} {item.st_type?}" id="{item.key}"> <a class="time" href="#{item.key}"><time id="{item.time}" datetime="{item.datetime}">{item.time}</time></a> <b class="nick">{item.nick}</b> <em class="verb">{item.verb?}</em>