Software /
code /
prosody-modules
Diff
mod_http_muc_log/res/http_muc_log.html @ 4592:38f501dca618
mod_http_muc_log: Find edit relations using XEP-0308
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 Jun 2021 17:35:56 +0200 |
parent | 4591:327c7cacd89f |
child | 4593:b65a363d32d2 |
line wrap: on
line diff
--- a/mod_http_muc_log/res/http_muc_log.html Tue Jun 15 17:22:33 2021 +0200 +++ b/mod_http_muc_log/res/http_muc_log.html Tue Jun 15 17:35:56 2021 +0200 @@ -45,7 +45,8 @@ .button{display:inline-block} .button>a{color:white;background-color:orange;border-radius:4px} form{text-align:right} -li:target{outline:1px gray dotted} +li.edited{display:none} +li:target{outline:1px gray dotted;display:inherit} @media (prefers-color-scheme: dark) { html{color:#eee} body{background-color:#161616} @@ -107,11 +108,11 @@ </div> <ol class="chat-logs">{lines# -<li {item.lang&lang="{item.lang}"} class="{item.st_name} {item.st_type?}" id="{item.key}"> +<li {item.lang&lang="{item.lang}"} class="{item.st_name} {item.st_type?} {item.edited&edited}" 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> -<q class="body">{item.body?}</q> +<q class="body">{item.edited&<del>}{item.body?}{item.edited&</del> <a href="#{item.edited}">✏</a>}{item.edit& <a href="#{item.edit}">✏</a>}</q> {item.oob.url&<figure><a rel="nofollow" href="{item.oob.url?}"><img style="max-height:9em;max-width:16em" alt="{item.oob.desc?}" src="{item.oob.url?}"/></a><figcaption>{item.oob.desc?}</figcaption></figure>} </li>} </ol>