comparison 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
parents 21170bf1e76b
children
comparison
equal deleted inserted replaced
5580:feadbd481285 5581:df483d9056f5
17 } 17 }
18 {room.webchat_url& 18 {room.webchat_url&
19 <li class="button"><a href="{room.webchat_url}">Join via web</a></li> 19 <li class="button"><a href="{room.webchat_url}">Join via web</a></li>
20 } 20 }
21 {links# 21 {links#
22 <li><a class="{item.rel?}" href="{item.href}{hide_presence&?p=h}" rel="{item.rel?}">{item.text}</a></li>} 22 <li><a class="{item.rel?}" href="{item.href}{q&?{q%{idx}={item}}}" rel="{item.rel?}">{item.text}</a></li>}
23 </ul> 23 </ul>
24 </nav> 24 </nav>
25 </header> 25 </header>
26 <hr> 26 <hr>
27 <main {lang&lang="{lang}"} class="content"> 27 <main {lang&lang="{lang}"} class="content">
28 <nav> 28 <nav>
29 <dl class="room-list"> 29 <dl class="room-list">
30 {rooms# 30 {rooms#
31 <dt {item.lang&lang="{item.lang}"} class="name"><a href="{item.href}{hide_presence&?p=h}">{item.name}</a></dt> 31 <dt {item.lang&lang="{item.lang}"} class="name"><a href="{item.href}{q&?{q%{idx}={item}}}">{item.name}</a></dt>
32 <dd {item.lang&lang="{item.lang}"} class="description">{item.description?}</dd>} 32 <dd {item.lang&lang="{item.lang}"} class="description">{item.description?}</dd>}
33 </dl> 33 </dl>
34 {dates|calendarize# 34 {dates|calendarize#
35 <h2 id="{item.year}">{item.year}</h2> 35 <h2 id="{item.year}">{item.year}</h2>
36 {item.months# 36 {item.months#
37 <table id="{item.month}-{item.year}"> 37 <table id="{item.month}-{item.year}">
38 <caption>{item.month}</caption> 38 <caption>{item.month}</caption>
39 <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> 39 <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>
40 <tbody>{item.weeks# 40 <tbody>{item.weeks#
41 <tr>{item.days#<td>{item.href&<a href="{item.href}{hide_presence&?p=h}">}<span>{item.day?&nbsp;}</span>{item.href&</a>}</td>}</tr>} 41 <tr>{item.days#<td>{item.href&<a href="{item.href}{q&?{q%{idx}={item}}}">}<span>{item.day?&nbsp;}</span>{item.href&</a>}</td>}</tr>}
42 </tbody> 42 </tbody>
43 </table> 43 </table>
44 } 44 }
45 } 45 }
46 </nav> 46 </nav>
47 47
48 <div> 48 <div>
49 {presence_available&<form> 49 {presence_available&<form>
50 <label> 50 <label>
51 <input name="p" value="h" type="checkbox"{hide_presence& checked}> 51 <input name="p" value="s" type="checkbox"{show_presence& checked}>
52 <span>Hide joins and parts</span> 52 <span>show joins and parts</span>
53 </label> 53 </label>
54 <noscript> 54 <noscript>
55 <button type="submit">Apply</button> 55 <button type="submit">Apply</button>
56 </noscript> 56 </noscript>
57 </form>} 57 </form>}
70 </main> 70 </main>
71 <hr> 71 <hr>
72 <footer> 72 <footer>
73 <nav> 73 <nav>
74 <ul>{links# 74 <ul>{links#
75 <li><a class="{item.rel?}" href="{item.href}{hide_presence&?p=h}" rel="{item.rel?}">{item.text}</a></li>} 75 <li><a class="{item.rel?}" href="{item.href}{q&?{q%{idx}={item}}}" rel="{item.rel?}">{item.text}</a></li>}
76 </ul> 76 </ul>
77 </nav> 77 </nav>
78 <br> 78 <br>
79 <div class="powered-by">Prosody</div> 79 <div class="powered-by">Prosody</div>
80 </footer> 80 </footer>