Initial Codebase (untested)
This commit is contained in:
27
internal/templates/_partials.html
Normal file
27
internal/templates/_partials.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{{ define "pager" }}
|
||||
{{ if .HasPages }}
|
||||
<nav class="pagination-nav">
|
||||
<ul>
|
||||
<li>
|
||||
{{ if .HasPrev }}
|
||||
<a href="?p={{ .PrevPage }}">Prev</a>
|
||||
{{ else }}
|
||||
<a href="#" data-tooltip="No previous page">Prev</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><small>Page {{ .Page }}/{{ .PageNums }} of {{ .Nums }} Twts</small></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>
|
||||
{{ if .HasNext }}
|
||||
<a href="?p={{ .NextPage }}">Next</a>
|
||||
{{ else }}
|
||||
<a href="#" data-tooltip="No next page">Next</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user