summaryrefslogtreecommitdiff
path: root/pages/calendar.mustache
diff options
context:
space:
mode:
Diffstat (limited to 'pages/calendar.mustache')
-rw-r--r--pages/calendar.mustache59
1 files changed, 59 insertions, 0 deletions
diff --git a/pages/calendar.mustache b/pages/calendar.mustache
new file mode 100644
index 0000000..79475cb
--- /dev/null
+++ b/pages/calendar.mustache
@@ -0,0 +1,59 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Calendar {{channel}} ({{network}}) - ircbrowse2</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="/style.css">
+</head>
+<body>
+ <div id="gridwrapper" data-page="withheader">
+ <header>
+ <a href="/" class="hdritem">Home</a>
+ {{network}}/{{channel}}:
+ <a href="/log/{{alias}}" class="hdritem">Logs</a>
+ <a href="/cal/{{alias}}" class="hdritem">Calendar</a>
+ </header>
+ <main>
+ <h1>Calendar: {{network}}/{{channel}}</h1>
+ {{#years}}
+ <h2>{{year}}</h2>
+ <table><tbody>
+ {{#monrows}}
+ <tr>
+ {{#months}}
+ <td class="calmonth">
+ {{#monthname}}
+ <b>{{monthname}}</b><br>
+ <table class="calmonth"><tbody>
+ {{#weeks}}
+ <tr>
+ {{#days}}
+ <td>{{#date}}<a href="/cal/{{alias}}/{{year}}-{{month00}}-{{date00}}">{{date}}</a>{{/date}}</td>
+ {{/days}}
+ {{^days}}
+ <td>&nbsp;</td>
+ {{/days}}
+ </tr>
+ {{/weeks}}
+ {{#phantomweek}}
+ <tr style="opacity:0">
+ <td>30</td><td>30</td><td>30</td><td>30</td><td>30</td><td>30</td><td>30</td>
+ </tr>
+ {{/phantomweek}}
+ </tbody></table>
+ {{/monthname}}
+ </td>
+ {{/months}}
+ </tr>
+ {{/monrows}}
+ </tbody></table>
+ {{/years}}
+ </main>
+ <footer>
+ An IRC log viewer by
+ <a href="https://tomsmeding.com">Tom Smeding</a>.
+ </footer>
+ </div>
+</body>
+</html>