summaryrefslogtreecommitdiff
path: root/pages/log.mustache
blob: 254a9cde59e520b82cfeb936396c84d4dd6a7224 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>ircbrowse2: {{channel}} ({{network}})</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>
      <span class="hdrspacer"></span>
      <a href="/cal/{{alias}}" class="hdritem">Calendar</a>
    </header>
    <main>
      <h1>Logs: {{network}}/{{channel}}</h1>
      <div class="pagepicker">
        {{#picker}}
          {{#prevpage}}<a href="?page={{prevpage}}">{{/prevpage}}{{^prevpage}}<span class="link-disabled">{{/prevpage}}&larr;Prev</a>&nbsp;
          {{#nextpage}}<a href="?page={{nextpage}}">{{/nextpage}}{{^nextpage}}<span class="link-disabled">{{/nextpage}}Next&rarr;</a>
          <div class="pagepicker-pages">
            Page
            {{#firstpage}}
              <a href="?page=1">1</a>
            {{/firstpage}}
            {{#leftdots}}
              ..
            {{/leftdots}}
            {{#leftnums}}
              <a href="?page={{.}}">{{.}}</a>
            {{/leftnums}}
            <b>{{curnum}}</b>
            {{#rightnums}}
              <a href="?page={{.}}">{{.}}</a>
            {{/rightnums}}
            {{#rightdots}}
              ..
            {{/rightdots}}
            {{#lastpage}}
              <a href="?page={{npages}}">{{npages}}</a>
            {{/lastpage}}
          </div>
        {{/picker}}
        <span style="margin: 0 9px 0 4px">&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>
      <div class="pagepicker">
        {{#picker}}
          {{#prevpage}}<a href="?page={{prevpage}}">{{/prevpage}}{{^prevpage}}<span class="link-disabled">{{/prevpage}}&larr;Prev</a>&nbsp;
          {{#nextpage}}<a href="?page={{nextpage}}">{{/nextpage}}{{^nextpage}}<span class="link-disabled">{{/nextpage}}Next&rarr;</a>
          <div class="pagepicker-pages">
            Page
            {{#firstpage}}
              <a href="?page=1">1</a>
            {{/firstpage}}
            {{#leftdots}}
              ..
            {{/leftdots}}
            {{#leftnums}}
              <a href="?page={{.}}">{{.}}</a>
            {{/leftnums}}
            <b>{{curnum}}</b>
            {{#rightnums}}
              <a href="?page={{.}}">{{.}}</a>
            {{/rightnums}}
            {{#rightdots}}
              ..
            {{/rightdots}}
            {{#lastpage}}
              <a href="?page={{npages}}">{{npages}}</a>
            {{/lastpage}}
          </div>
        {{/picker}}
        <span style="margin: 0 9px 0 4px">&mdash;</span>
        {{totalevents}} events total
      </div>
    </main>
    <footer>
      An IRC log viewer by
      <a href="https://tomsmeding.com">Tom Smeding</a>.
    </footer>
  </div>
</body>
</html>