summaryrefslogtreecommitdiff
path: root/pages/log.mustache
blob: 24b7b781bf129c3b64c452b3faefc743e1d020b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Ircbrowse2: {{channel}} ({{network}})</title>
  <link rel="stylesheet" href="/style.css">
</head>
<body>
  <div id="gridwrapper" data-page="withheader">
    <header>
      <a href="/" class="hdritem">Home</a>
      <span class="hdrspacer"></span>
      <span class="hdrchannel">{{network}}/{{channel}}</span>
      <span class="hdrspacer"></span>
      <a href="/cal/{{alias}}" class="hdritem">Calendar</a>
    </header>
    <main>
      <h1>Logs for {{channel}} on {{network}}</h1>
      <div id="pagepicker">
        {{#picker}}
          Page
          {{#prevpage}}
            <a href="?page=1">1</a>
            ..
            <a href="?page={{prevpage}}">&lt;Prev</a>
          {{/prevpage}}
          {{#leftnums}}
            <a href="?page={{.}}">{{.}}</a>
          {{/leftnums}}
          <b>{{curnum}}</b>
          {{#rightnums}}
            <a href="?page={{.}}">{{.}}</a>
          {{/rightnums}}
          {{#nextpage}}
            <a href="?page={{nextpage}}">Next&gt;</a>
            ..
            <a href="?page={{npages}}">{{npages}}</a>
          {{/nextpage}}
        {{/picker}}
        <span style="margin: 0 10px 0 11px">&mdash;</span>
        {{totalevents}} events total.
      </div>
      <table id="events"><tbody>
        {{#events}}
          <tr{{#classlist}} class="{{.}}"{{/classlist}}>
            <td>{{datetime}}</td>
            <td>{{#nickwrap1}}<span class="nickwrap">{{nickwrap1}}</span>{{/nickwrap1}}{{nick}}{{#nickwrap2}}<span class="nickwrap">{{nickwrap2}}</span>{{/nickwrap2}}</td>
            <td>{{message}}</td>
          </tr>
        {{/events}}
      </tbody></table>
    </main>
    <footer>
      An IRC log viewer by
      <a href="https://tomsmeding.com">Tom Smeding</a>.
    </footer>
  </div>
</body>
</html>