Software /
code /
prosody-modules
Annotate
mod_http_muc_log/http_muc_log.html @ 2676:1b081c8fc1d9
mod_storage_xmlarchive: Attempt to clean up orphaned files despite util.datamanager or internal storage having deleted the date index file (fixes #725)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Apr 2017 21:09:44 +0200 |
parent | 2083:fed0a71a5e68 |
child | 3485:181561d0aae5 |
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> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 <html> |
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"> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
6 <title>{title}</title> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
7 <style> |
1589
0da51b825263
mod_http_muc_log: (template) Remove duplicate CSS property
Kim Alvefur <zash@zash.se>
parents:
1582
diff
changeset
|
8 :link,:visited{color:#2e3436;text-decoration:none;} |
1582
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
9 :link:hover,:visited:hover{color:#3465a4;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
10 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
|
11 ul,ol{padding:0;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
12 li{list-style:none;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
13 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
|
14 br{clear:both;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
15 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
|
16 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
|
17 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
|
18 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
|
19 @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
|
20 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
|
21 } |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
22 nav a{padding: 1ex;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
23 nav .up{font-size:smaller;display:block;clear:both;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
24 nav .prev{float:left;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
25 nav .next{float:right;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
26 nav .next::after{content:" →";} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
27 nav .prev::before{content:"← ";} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
28 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
|
29 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
|
30 th{font-size:x-small} |
2c8b985ebde5
mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents:
1589
diff
changeset
|
31 td{text-align:right;color:#bababa;padding:.5ex} |
2c8b985ebde5
mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents:
1589
diff
changeset
|
32 td a{padding:0} |
1582
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
33 .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
|
34 .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
|
35 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
|
36 .description{font-size:smaller;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
37 .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
|
38 .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
|
39 .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
|
40 .unavailable .verb{color:#c03030;} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
41 </style> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
42 </head> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
43 <body> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
44 <header> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
45 <h1 title="xmpp:{jid?}">{title}</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
|
46 <nav> |
fed0a71a5e68
mod_http_muc_log: Add XMPP URI link for joining the current room
Kim Alvefur <zash@zash.se>
parents:
1915
diff
changeset
|
47 <a href="xmpp:{jid?}?join">Join using a client</a>{links# |
1751
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
48 <a class="{item.rel?}" href="{item.href}" rel="{item.rel?}">{item.text}</a>} |
1582
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
49 </nav> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
50 </header> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
51 <hr> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
52 <div class="content"> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
53 <nav> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
54 <dl class="room-list"> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
55 {rooms# |
1751
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
56 <dt class="name"><a href="{item.href}">{item.name}</a></dt> |
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
57 <dd 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
|
58 </dl> |
1606
2c8b985ebde5
mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents:
1589
diff
changeset
|
59 {years# |
1751
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
60 <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
|
61 {item.months# |
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
62 <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
|
63 <caption>{item.month}</caption> |
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
64 <tr><th>Mon</th><th>Tue</th><th>Wed</th><th>Thu</th><th>Fri</th><th>Sat</th><th>Sun</th></tr>{item.weeks# |
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
65 <tr>{item.days#<td>{item.href&<a href="{item.href}">}{item.day? }{item.href&</a>}</td>}</tr>} |
1606
2c8b985ebde5
mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents:
1589
diff
changeset
|
66 </table> |
2c8b985ebde5
mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents:
1589
diff
changeset
|
67 } |
2c8b985ebde5
mod_http_muc_log: Switch to a calendar view for selecting dates
Kim Alvefur <zash@zash.se>
parents:
1589
diff
changeset
|
68 } |
1582
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
69 </nav> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
70 <ol class="chat-logs">{lines# |
1751
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
71 <li class="{item.st_name} {item.st_type?}" id="{item.key}"> |
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
72 <a class="time" href="#{item.key}"><time datetime="{item.datetime}">{item.time}</time></a> |
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
73 <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
|
74 <em class="verb">{item.verb?}</em> |
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
75 <q class="body">{item.body?}</q> |
1582
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
76 </li>} |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
77 </ol> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
78 </div> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
79 <hr> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
80 <footer> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
81 <nav>{links# |
1751
3f3a5daf31cc
mod_http_muc_log: Update template for changes in template engine
Kim Alvefur <zash@zash.se>
parents:
1625
diff
changeset
|
82 <a class="{item.rel?}" href="{item.href}" rel="{item.rel?}">{item.text}</a>} |
1582
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
83 </nav> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
84 <br> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
85 <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
|
86 </footer> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
87 <script> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
88 /* |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
89 * Local timestamps |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
90 */ |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
91 (function () { |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
92 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
|
93 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
|
94 while(timeTags[i]) { |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
95 tag = timeTags[i++]; |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
96 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
|
97 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
|
98 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
|
99 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
|
100 } |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
101 } |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
102 })(); |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
103 </script> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
104 </body> |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
105 </html> |