Browse Source

remove Prev / Next buttons if no further pages (#458)

Removing line removes Prev / Next buttons if no more pages available.

Co-authored-by: laz <laz@vltra.plus>
Co-authored-by: James Mills <james@mills.io>
Reviewed-on: #458
Reviewed-by: James Mills <james@mills.io>
Co-authored-by: laz <laz@noreply@mills.io>
Co-committed-by: laz <laz@noreply@mills.io>
pull/459/head
laz 4 days ago
committed by James Mills
parent
commit
f1ad722812
  1. 1
      AUTHORS
  2. 2
      internal/templates/_partials.html

1
AUTHORS

@ -9,3 +9,4 @@ Hossein Zeinali <hosseinzeinalii@gmail.com>
Marcos Marado <mindboosternoori@gmail.com>
James Mills <prologic@shortcircuit.net.au>
Jon Lundy <jon@xuu.cc>
laz <laz@vltra.plus>

2
internal/templates/_partials.html

@ -245,7 +245,6 @@
<a href="?p={{ $.Pager.PrevPage }}">{{tr $.Ctx "PagerPrevLinkTitle"}}</a>
{{ end }}
{{ else }}
<a href="#">{{tr $.Ctx "PagerPrevLinkTitle"}}</a>
{{ end }}
</li>
</ul>
@ -265,7 +264,6 @@
<a href="?p={{ $.Pager.NextPage }}">{{tr $.Ctx "PagerNextLinkTitle"}}</a>
{{ end }}
{{ else }}
<a href="#">{{tr $.Ctx "PagerNextLinkTitle"}}</a>
{{ end }}
</li>
</ul>

Loading…
Cancel
Save