aboutsummaryrefslogtreecommitdiff
path: root/views/npost.html
blob: 7c22b9bc7d806c7376ce5112481c474c8869b5ec (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
{{ template "partials/top" .page }}

<hr>

<ul id="navlinks">
  <li>[<a href="/{{ .page.Board.Name }}">Return</a>]</li>
  {{ template "partials/post_nav" .page }}
  <li>[<a href="#bottom" id="top">Bottom</a>]</li>
</ul>

<hr>

{{ template "partials/posts" .page }}

<hr>

<table id="threadfooter"><tr>
  <tr>
    <td>
      <ul id="navlinks">
        <li>[<a href="/{{ .page.Board.Name }}">Return</a>]</li>
        {{ template "partials/post_nav" .page }}
        <li>[<a href="#top" id="bottom">Top</a>]</li>
        <li><input id="autoreload-checkbox" type="checkbox" onclick="autoTimer()"> Auto refresh <span id="autoreload-countdown" style="visibility: hidden;">0</span></li>
      </ul>
    </td>

    {{ if eq (index .page.Posts 0).Type "Note" }}
    <td style="text-align: center;">
      <span>[<a id="reply-content" href="javascript:quote('{{ .page.Board.Actor.Id }}', '{{ (index .page.Posts 0).Id }}', 'reply')">Post a Reply</a>]</span>
    </td>
    {{ end }}

    <td>
      {{ $replies := (index .page.Posts 0).Replies }}
      <span id="threadStats" data-total="{{ $replies.TotalItems }}" data-imgs="{{ $replies.TotalImgs }}">{{ $replies.TotalItems }} / {{ $replies.TotalImgs }}</span>
    </td>
  </tr>
</table>

<hr>

{{ template "partials/bottom" .page }}
{{ template "partials/footer" .page }}
{{ template "partials/general_scripts" .page }}
{{ template "partials/post_scripts" .page }}

<script src="/static/js/timer.js"></script>