blob: 567b945ba46e8f4620000137ae2ad78f255a1cfa (
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
|
{{ template "partials/top" .page }}
{{ $board := .page.Board }}
<hr>
<ul id="navlinks">
<li>[<a href="/{{ .page.Board.Name }}/catalog">Catalog</a>]</li>
{{ template "partials/post_nav" .page }}
</ul>
{{ template "partials/posts" .page }}
<hr>
<ul id="navlinks">
<li>[<a href="/{{ .page.Board.Name }}/catalog">Catalog</a>]</li>
{{ template "partials/post_nav" .page }}
</ul>
<hr>
{{ if gt .page.TotalPage 0 }}
{{ $totalPage := .page.TotalPage }}
<ul style="float: right; margin: 0; padding: 0; display: inline">
{{ $page := .page.CurrentPage }}
{{ if gt $page 0 }}
<li style="display: inline">[<a href="/{{ $board.Name }}?page={{ sub $page 1 }}"><</a>]</li>
{{ end }}
{{ range $i, $e := .page.Pages }}
{{ if eq $i $page}}
<li style="display: inline">[<a href="/{{ $board.Name }}?page={{ $i }}"><b>{{ $i }}</b></a>]</li>
{{ else }}
<li style="display: inline">[<a href="/{{ $board.Name }}?page={{ $i }}">{{ $i }}</a>]</li>
{{ end }}
{{ end }}
{{ if lt .page.CurrentPage .page.TotalPage }}
<li style="display: inline">[<a href="/{{ $board.Name }}?page={{ add $page 1 }}">></a>]</li>
{{ end }}
</ul>
{{ end }}
{{ template "partials/bottom" .page }}
{{ template "partials/footer" .page }}
{{ template "partials/general_scripts" .page }}
{{ template "partials/post_scripts" .page }}
|