annotate mod_http_muc_log/res/http_muc_log.html @ 4976:75b6e5df65f9

various: Improve error reporting if missing file server module on 0.12 If there is some error loading net.http.files then it would be swallowed by the pcall and then it would proceed to trying mod_http_files, which might cause unexpected behavior on 0.12 Ref #1765
author Kim Alvefur <zash@zash.se>
date Mon, 18 Jul 2022 22:47:54 +0200
parents 39211f23f9f3
children 8a8ec909ac20
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 <!DOCTYPE html>
3700
0fc208973f0f mod_http_muc_log: Declare language as English #a11y
Kim Alvefur <zash@zash.se>
parents: 3692
diff changeset
2 <html lang="en">
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 <head>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 <meta charset="utf-8">
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 <meta name="viewport" content="width=device-width, initial-scale=1">
3714
04ff0de40ba9 mod_http_muc_log: Add date metadata to log pages
Kim Alvefur <zash@zash.se>
parents: 3704
diff changeset
6 {date&<meta name="dcterms.date" content="{date}">}
3715
f03a023cd523 mod_http_muc_log: Compose page title from room data
Kim Alvefur <zash@zash.se>
parents: 3714
diff changeset
7 <title>{title?{room.name?{jid_node}}{date& - {date}}}</title>
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 <style>
3704
c6563625f60e mod_http_muc_log: More blue links to distinguish them as such (thanks jonas’)
Kim Alvefur <zash@zash.se>
parents: 3703
diff changeset
9 :link,:visited{color:#3465a4;text-decoration:none;}
c6563625f60e mod_http_muc_log: More blue links to distinguish them as such (thanks jonas’)
Kim Alvefur <zash@zash.se>
parents: 3703
diff changeset
10 :link:hover,:visited:hover{color:#6197df;}
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 body{background-color:#eeeeec;margin:1ex 0;padding-bottom:3em;font-family:Arial,Helvetica,sans-serif;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 ul,ol{padding:0;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 li{list-style:none;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 hr{visibility:hidden;clear:both;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 br{clear:both;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16 header,footer{margin:1ex 1em;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 footer{font-size:smaller;color:#babdb6;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 nav{font-size:large;margin:1ex 1ex;clear:both;line-height:1.5em;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 footer nav .up{display:none;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 @media screen and (min-width: 460px) {
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 nav {font-size:x-large;margin:1ex 1em;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 }
4198
b1a5c2ee49c4 mod_http_index,muc_log: More CSS tweaks
Kim Alvefur <zash@zash.se>
parents: 4196
diff changeset
23 nav a{padding:1ex}
b1a5c2ee49c4 mod_http_index,muc_log: More CSS tweaks
Kim Alvefur <zash@zash.se>
parents: 4196
diff changeset
24 nav li,nav dt{margin:1ex}
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 nav .up{font-size:smaller;display:block;clear:both;}
3717
4c7d27542161 mod_http_muc_log: Add add an arrow to upwards navigation links (like on next/prev)
Kim Alvefur <zash@zash.se>
parents: 3716
diff changeset
26 nav .up::before{content:"↑ ";}
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 nav .prev{float:left;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28 nav .next{float:right;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29 nav .next::after{content:" →";}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 nav .prev::before{content:"← ";}
3718
cc6f7e2e4a59 mod_http_muc_log: Add arrow to 'latest' link like on other navigation
Kim Alvefur <zash@zash.se>
parents: 3717
diff changeset
31 nav .last::after{content:" ⇥";}
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32 nav :empty::after,nav :empty::before{content:""}
1621
738e9874a374 mod_http_muc_log: Fix alignment of month-tables (Thanks March)
Kim Alvefur <zash@zash.se>
parents: 1606
diff changeset
33 table{display:inline-block; margin:1ex 1em;vertical-align:top;}
1606
2c8b985ebde5 mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents: 1589
diff changeset
34 th{font-size:x-small}
3580
907ccda3f0d2 mod_http_muc_log: Increase clickable area on dates
Kim Alvefur <zash@zash.se>
parents: 3579
diff changeset
35 td{text-align:right;color:#bababa}
907ccda3f0d2 mod_http_muc_log: Increase clickable area on dates
Kim Alvefur <zash@zash.se>
parents: 3579
diff changeset
36 td > a, td > span{padding:0.4em}
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37 .content{background-color:white;padding:1em;list-style-position:inside;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 .time{float:right;font-size:small;opacity:0.2;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 li:hover .time{opacity:1;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 .description{font-size:smaller;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 .body{white-space:pre-line;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
42 .body::before,.body::after{content:"";}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
43 .presence .verb{font-style:normal;color:#30c030;}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
44 .unavailable .verb{color:#c03030;}
3691
be430d077d1c mod_http_muc_log: Make link to join room more button-looking
Kim Alvefur <zash@zash.se>
parents: 3690
diff changeset
45 .button{display:inline-block}
be430d077d1c mod_http_muc_log: Make link to join room more button-looking
Kim Alvefur <zash@zash.se>
parents: 3690
diff changeset
46 .button>a{color:white;background-color:orange;border-radius:4px}
4963
479d618c9e6d mod_http_muc_log: Show XEP-0444 reactions
Kim Alvefur <zash@zash.se>
parents: 4593
diff changeset
47 .reaction{font-size:smaller;outline:1px solid silver;border-radius:2px}
3485
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
48 form{text-align:right}
4592
38f501dca618 mod_http_muc_log: Find edit relations using XEP-0308
Kim Alvefur <zash@zash.se>
parents: 4591
diff changeset
49 li.edited{display:none}
38f501dca618 mod_http_muc_log: Find edit relations using XEP-0308
Kim Alvefur <zash@zash.se>
parents: 4591
diff changeset
50 li:target{outline:1px gray dotted;display:inherit}
4972
b49d72160497 mod_http_muc_log: Move OOB style from attribute to <style> in header
Kim Alvefur <zash@zash.se>
parents: 4963
diff changeset
51 figure img{max-height:9em;max-width:16em}
4073
f6542e51b741 mod_http_muc_log: Add a dark theme when the user asked for that.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 3750
diff changeset
52 @media (prefers-color-scheme: dark) {
f6542e51b741 mod_http_muc_log: Add a dark theme when the user asked for that.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 3750
diff changeset
53 html{color:#eee}
f6542e51b741 mod_http_muc_log: Add a dark theme when the user asked for that.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 3750
diff changeset
54 body{background-color:#161616}
f6542e51b741 mod_http_muc_log: Add a dark theme when the user asked for that.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 3750
diff changeset
55 .content{background-color:#1c1c1c}
f6542e51b741 mod_http_muc_log: Add a dark theme when the user asked for that.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 3750
diff changeset
56 footer{color:#444}
f6542e51b741 mod_http_muc_log: Add a dark theme when the user asked for that.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 3750
diff changeset
57 td{color:#444}
f6542e51b741 mod_http_muc_log: Add a dark theme when the user asked for that.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 3750
diff changeset
58 .button>a{background-color:#282828}
f6542e51b741 mod_http_muc_log: Add a dark theme when the user asked for that.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 3750
diff changeset
59 }
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
60 </style>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
61 </head>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
62 <body>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
63 <header>
3715
f03a023cd523 mod_http_muc_log: Compose page title from room data
Kim Alvefur <zash@zash.se>
parents: 3714
diff changeset
64 <h1 {lang&lang="{lang}"} title="xmpp:{jid?}">{title?{room.name?{jid_node}}{date& - {date}}}</h1>
2083
fed0a71a5e68 mod_http_muc_log: Add XMPP URI link for joining the current room
Kim Alvefur <zash@zash.se>
parents: 1915
diff changeset
65 <nav>
3690
8c0a6d4541d5 mod_http_muc_log: Wrap navigation in unorderded lists (thanks jonas’)
Kim Alvefur <zash@zash.se>
parents: 3645
diff changeset
66 <ul>
3692
96c6d9b0969f mod_http_muc_log: Hide room join link from room listing
Kim Alvefur <zash@zash.se>
parents: 3691
diff changeset
67 {jid_node&
96c6d9b0969f mod_http_muc_log: Hide room join link from room listing
Kim Alvefur <zash@zash.se>
parents: 3691
diff changeset
68 <li class="button"><a href="xmpp:{jid?}?join">Join using a client</a></li>
96c6d9b0969f mod_http_muc_log: Hide room join link from room listing
Kim Alvefur <zash@zash.se>
parents: 3691
diff changeset
69 }
3716
3db27b8f1cb0 mod_http_muc_log: Add button-link to webchat URL if one is set via mod_muc_webchat_url
Kim Alvefur <zash@zash.se>
parents: 3715
diff changeset
70 {room.webchat_url&
3db27b8f1cb0 mod_http_muc_log: Add button-link to webchat URL if one is set via mod_muc_webchat_url
Kim Alvefur <zash@zash.se>
parents: 3715
diff changeset
71 <li class="button"><a href="{room.webchat_url}">Join via web</a></li>
3db27b8f1cb0 mod_http_muc_log: Add button-link to webchat URL if one is set via mod_muc_webchat_url
Kim Alvefur <zash@zash.se>
parents: 3715
diff changeset
72 }
3692
96c6d9b0969f mod_http_muc_log: Hide room join link from room listing
Kim Alvefur <zash@zash.se>
parents: 3691
diff changeset
73 {links#
3690
8c0a6d4541d5 mod_http_muc_log: Wrap navigation in unorderded lists (thanks jonas’)
Kim Alvefur <zash@zash.se>
parents: 3645
diff changeset
74 <li><a class="{item.rel?}" href="{item.href}{hide_presence&?p=h}" rel="{item.rel?}">{item.text}</a></li>}
8c0a6d4541d5 mod_http_muc_log: Wrap navigation in unorderded lists (thanks jonas’)
Kim Alvefur <zash@zash.se>
parents: 3645
diff changeset
75 </ul>
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
76 </nav>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
77 </header>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
78 <hr>
3702
caf27826c7b2 mod_http_muc_log: Use configured room language in room title/desc #a11y
Kim Alvefur <zash@zash.se>
parents: 3701
diff changeset
79 <main {lang&lang="{lang}"} class="content">
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
80 <nav>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
81 <dl class="room-list">
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
82 {rooms#
3702
caf27826c7b2 mod_http_muc_log: Use configured room language in room title/desc #a11y
Kim Alvefur <zash@zash.se>
parents: 3701
diff changeset
83 <dt {item.lang&lang="{item.lang}"} class="name"><a href="{item.href}{hide_presence&?p=h}">{item.name}</a></dt>
caf27826c7b2 mod_http_muc_log: Use configured room language in room title/desc #a11y
Kim Alvefur <zash@zash.se>
parents: 3701
diff changeset
84 <dd {item.lang&lang="{item.lang}"} class="description">{item.description?}</dd>}
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
85 </dl>
3750
9002c8a2165f mod_http_muc_log: Refactor calendarization of date list into a template filter BC
Kim Alvefur <zash@zash.se>
parents: 3718
diff changeset
86 {dates|calendarize#
1751
3f3a5daf31cc mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents: 1625
diff changeset
87 <h2 id="{item.year}">{item.year}</h2>
3f3a5daf31cc mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents: 1625
diff changeset
88 {item.months#
3f3a5daf31cc mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents: 1625
diff changeset
89 <table id="{item.month}-{item.year}">
3f3a5daf31cc mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents: 1625
diff changeset
90 <caption>{item.month}</caption>
3579
b5511c48c958 mod_http_muc_log: Add table header and body tags for improved semantics
Kim Alvefur <zash@zash.se>
parents: 3485
diff changeset
91 <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>
b5511c48c958 mod_http_muc_log: Add table header and body tags for improved semantics
Kim Alvefur <zash@zash.se>
parents: 3485
diff changeset
92 <tbody>{item.weeks#
3580
907ccda3f0d2 mod_http_muc_log: Increase clickable area on dates
Kim Alvefur <zash@zash.se>
parents: 3579
diff changeset
93 <tr>{item.days#<td>{item.href&<a href="{item.href}{hide_presence&?p=h}">}<span>{item.day?&nbsp;}</span>{item.href&</a>}</td>}</tr>}
3579
b5511c48c958 mod_http_muc_log: Add table header and body tags for improved semantics
Kim Alvefur <zash@zash.se>
parents: 3485
diff changeset
94 </tbody>
1606
2c8b985ebde5 mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents: 1589
diff changeset
95 </table>
2c8b985ebde5 mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents: 1589
diff changeset
96 }
2c8b985ebde5 mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents: 1589
diff changeset
97 }
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
98 </nav>
3485
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
99
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
100 <div>
3597
da7ec4ed6ddf mod_http_muc_log: Hide join/part controls if they are not stored by mod_muc_mam
Kim Alvefur <zash@zash.se>
parents: 3582
diff changeset
101 {presence_available&<form>
3485
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
102 <label>
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
103 <input name="p" value="h" type="checkbox"{hide_presence& checked}>
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
104 <span>Hide joins and parts</span>
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
105 </label>
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
106 <noscript>
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
107 <button type="submit">Apply</button>
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
108 </noscript>
3597
da7ec4ed6ddf mod_http_muc_log: Hide join/part controls if they are not stored by mod_muc_mam
Kim Alvefur <zash@zash.se>
parents: 3582
diff changeset
109 </form>}
3485
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
110 </div>
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
111
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
112 <ol class="chat-logs">{lines#
4592
38f501dca618 mod_http_muc_log: Find edit relations using XEP-0308
Kim Alvefur <zash@zash.se>
parents: 4591
diff changeset
113 <li {item.lang&lang="{item.lang}"} class="{item.st_name} {item.st_type?} {item.edited&edited}" id="{item.key}">
3645
413ea67597d2 mod_http_muc_log: Make time based anchors from mod_muc_log_http work
Kim Alvefur <zash@zash.se>
parents: 3597
diff changeset
114 <a class="time" href="#{item.key}"><time id="{item.time}" datetime="{item.datetime}">{item.time}</time></a>
1751
3f3a5daf31cc mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents: 1625
diff changeset
115 <b class="nick">{item.nick}</b>
3f3a5daf31cc mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents: 1625
diff changeset
116 <em class="verb">{item.verb?}</em>
4973
39211f23f9f3 mod_http_muc_log: Improve accessibility with descriptive @title attrs
Kim Alvefur <zash@zash.se>
parents: 4972
diff changeset
117 <q class="body">{item.edited&<del>}{item.body?}{item.edited&</del> <a href="#{item.edited}" title="jump to corrected version">&#9998;</a>}{item.edit& <a href="#{item.edit}" title="jump to previous version">&#9999;</a>}</q>
4963
479d618c9e6d mod_http_muc_log: Show XEP-0444 reactions
Kim Alvefur <zash@zash.se>
parents: 4593
diff changeset
118 {item.reactions%<span class="reaction">{idx} {item}</span>}
4972
b49d72160497 mod_http_muc_log: Move OOB style from attribute to <style> in header
Kim Alvefur <zash@zash.se>
parents: 4963
diff changeset
119 {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>}
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
120 </li>}
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
121 </ol>
3701
3bb9a0806439 mod_http_muc_log: Use <main> element to mark main content #a11y
Kim Alvefur <zash@zash.se>
parents: 3700
diff changeset
122 </main>
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
123 <hr>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
124 <footer>
3690
8c0a6d4541d5 mod_http_muc_log: Wrap navigation in unorderded lists (thanks jonas’)
Kim Alvefur <zash@zash.se>
parents: 3645
diff changeset
125 <nav>
8c0a6d4541d5 mod_http_muc_log: Wrap navigation in unorderded lists (thanks jonas’)
Kim Alvefur <zash@zash.se>
parents: 3645
diff changeset
126 <ul>{links#
8c0a6d4541d5 mod_http_muc_log: Wrap navigation in unorderded lists (thanks jonas’)
Kim Alvefur <zash@zash.se>
parents: 3645
diff changeset
127 <li><a class="{item.rel?}" href="{item.href}{hide_presence&?p=h}" rel="{item.rel?}">{item.text}</a></li>}
8c0a6d4541d5 mod_http_muc_log: Wrap navigation in unorderded lists (thanks jonas’)
Kim Alvefur <zash@zash.se>
parents: 3645
diff changeset
128 </ul>
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
129 </nav>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
130 <br>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
131 <div class="powered-by">Prosody</div>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
132 </footer>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
133 <script>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
134 /*
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
135 * Local timestamps
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
136 */
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
137 (function () {
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
138 var timeTags = document.getElementsByTagName("time");
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
139 var i = 0, tag, date;
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
140 while(timeTags[i]) {
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
141 tag = timeTags[i++];
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
142 if(date = tag.getAttribute("datetime")) {
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
143 date = new Date(date);
1915
5e65c91c07c4 mod_http_muc_log: Produce local timestamps in local format
Kim Alvefur <zash@zash.se>
parents: 1751
diff changeset
144 tag.textContent = date.toLocaleTimeString(navigator.language);
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
145 tag.setAttribute("title", date.toString());
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
146 }
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
147 }
3485
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
148 document.forms[0].elements.p.addEventListener("change", function() {
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
149 document.forms[0].submit();
181561d0aae5 mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents: 2083
diff changeset
150 });
1582
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
151 })();
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
152 </script>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
153 </body>
8e282eb0c70c mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff changeset
154 </html>