Software /
code /
prosody-modules
Diff
mod_http_muc_log/res/http_muc_log.html @ 5581:df483d9056f5
mod_http_muc_log: Hide joins and parts by default
Now both ?p=s(how) and ?p=h(ide) are understood and propagated trough
links, with unset being being hide.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 28 Jun 2023 21:47:22 +0200 |
parent | 5108:21170bf1e76b |
line wrap: on
line diff
--- a/mod_http_muc_log/res/http_muc_log.html Mon Jun 26 00:19:05 2023 +0200 +++ b/mod_http_muc_log/res/http_muc_log.html Wed Jun 28 21:47:22 2023 +0200 @@ -19,7 +19,7 @@ <li class="button"><a href="{room.webchat_url}">Join via web</a></li> } {links# -<li><a class="{item.rel?}" href="{item.href}{hide_presence&?p=h}" rel="{item.rel?}">{item.text}</a></li>} +<li><a class="{item.rel?}" href="{item.href}{q&?{q%{idx}={item}}}" rel="{item.rel?}">{item.text}</a></li>} </ul> </nav> </header> @@ -28,7 +28,7 @@ <nav> <dl class="room-list"> {rooms# -<dt {item.lang&lang="{item.lang}"} class="name"><a href="{item.href}{hide_presence&?p=h}">{item.name}</a></dt> +<dt {item.lang&lang="{item.lang}"} class="name"><a href="{item.href}{q&?{q%{idx}={item}}}">{item.name}</a></dt> <dd {item.lang&lang="{item.lang}"} class="description">{item.description?}</dd>} </dl> {dates|calendarize# @@ -38,7 +38,7 @@ <caption>{item.month}</caption> <thead><tr><th>Mon</th><th>Tue</th><th>Wed</th><th>Thu</th><th>Fri</th><th>Sat</th><th>Sun</th></tr></thead> <tbody>{item.weeks# -<tr>{item.days#<td>{item.href&<a href="{item.href}{hide_presence&?p=h}">}<span>{item.day? }</span>{item.href&</a>}</td>}</tr>} +<tr>{item.days#<td>{item.href&<a href="{item.href}{q&?{q%{idx}={item}}}">}<span>{item.day? }</span>{item.href&</a>}</td>}</tr>} </tbody> </table> } @@ -48,8 +48,8 @@ <div> {presence_available&<form> <label> -<input name="p" value="h" type="checkbox"{hide_presence& checked}> -<span>Hide joins and parts</span> + <input name="p" value="s" type="checkbox"{show_presence& checked}> +<span>show joins and parts</span> </label> <noscript> <button type="submit">Apply</button> @@ -72,7 +72,7 @@ <footer> <nav> <ul>{links# -<li><a class="{item.rel?}" href="{item.href}{hide_presence&?p=h}" rel="{item.rel?}">{item.text}</a></li>} +<li><a class="{item.rel?}" href="{item.href}{q&?{q%{idx}={item}}}" rel="{item.rel?}">{item.text}</a></li>} </ul> </nav> <br>