diff options
author | FChannel <> | 2021-07-28 15:43:48 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-28 15:43:48 -0700 |
commit | 7c6ee8f4073a5b8fd9cc065f225c9f09f21ee4a1 (patch) | |
tree | f3fdedfcf6a045ac24be12ac62023ed9b3c24782 /static/nposts.html | |
parent | 98d72c9b94b5dda9a987dfe41552f00512d43574 (diff) |
added soft thread limits. they are not physically archived yet
Diffstat (limited to 'static/nposts.html')
-rw-r--r-- | static/nposts.html | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/static/nposts.html b/static/nposts.html index d106f74..2b05b66 100644 --- a/static/nposts.html +++ b/static/nposts.html @@ -18,7 +18,7 @@ {{ $board := .Board }} <hr> <ul style="margin: 0; padding: 0; display: inline"> - <li style="display: inline"><a href="/{{ $board.Name }}/catalog">[Catalog]</a></li> + <li style="display: inline"><a href="/{{ $board.Name }}/catalog">[Catalog]</a></li> <li style="display: inline"><a href="#bottom">[Bottom]</a></li> <li style="display: inline"><a href="javascript:location.reload()">[Refresh]</a></li> </ul> @@ -35,19 +35,19 @@ {{ if gt .TotalPage 0 }} {{ $totalPage := .TotalPage }} <ul style="float: right; margin: 0; padding: 0; display: inline"> - {{ $page := .CurrentPage }} + {{ $page := .CurrentPage }} {{ if gt $page 0 }} - <li style="display: inline"><button onclick="previous('{{$board.Name }}', '{{ $page }}')">Previous</button></li> + <li style="display: inline"><a href="/{{ $board.Name }}?page={{ sub $page 1 }}">[ < ]</a></li> {{ end }} {{ range $i, $e := .Pages }} {{ if eq $i $page}} - <li style="display: inline"><a href="/{{ $board.Name }}/{{ $i }}"><b>[{{ $i }}]</b></a></li> + <li style="display: inline"><a href="/{{ $board.Name }}?page={{ $i }}"><b>[{{ $i }}]</b></a></li> {{ else }} - <li style="display: inline"><a href="/{{ $board.Name }}/{{ $i }}">[{{ $i }}]</a></li> + <li style="display: inline"><a href="/{{ $board.Name }}?page={{ $i }}">[{{ $i }}]</a></li> {{ end }} {{ end }} {{ if lt .CurrentPage .TotalPage }} - <li style="display: inline"><button onclick="next('{{ $board.Name }}','{{ $totalPage }}' ,'{{ $page }}')">next</button></li> + <li style="display: inline"><a href="/{{ $board.Name }}?page={{ add $page 1 }}">[ > ]</a></li> {{ end }} </ul> {{ end }} @@ -55,8 +55,4 @@ {{ define "script" }} <script src="/static/js/footerscript.js"></script> -<script> - viewLink("{{ .Board.Name }}", "{{ .Board.Actor.Id }}") - -</script> {{ end }} |