Skip to content

Commit

Permalink
Fixed range selector which broke .Data in gallery (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomactsofsecurity authored Nov 14, 2022
1 parent 8b6a305 commit 2b9d511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/ui-templates/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h2 class="page-title">
{{ range $p := .Data.PrevPageRange }}
<li class="page-item">
<a class="page-link"
href='{{ URL "/gallery" }}?{{ if .Data.Ordered }}perception_sort=true&{{ end }}limit={{ .Data.Limit }}&page={{ $p }}'>
href='{{ URL "/gallery" }}?{{ if $.Data.Ordered }}perception_sort=true&{{ end }}limit={{ $.Data.Limit }}&page={{ $p }}'>
{{ $p }}
</a>
</li>
Expand All @@ -160,7 +160,7 @@ <h2 class="page-title">
{{ range $p := .Data.NextPageRange }}
<li class="page-item">
<a class="page-link"
href='{{ URL "/gallery" }}?{{ if .Data.Ordered }}perception_sort=true&{{ end }}limit={{ .Data.Limit }}&page={{ $p }}'>
href='{{ URL "/gallery" }}?{{ if $.Data.Ordered }}perception_sort=true&{{ end }}limit={{ $.Data.Limit }}&page={{ $p }}'>
{{ $p }}
</a>
</li>
Expand Down

0 comments on commit 2b9d511

Please sign in to comment.