Browse Source

when changing the sort order of the blocks list, go back to page 1

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
14bb5f9b16
  1. 4
      views/blocks.pug

4
views/blocks.pug

@ -7,10 +7,10 @@ block content
nav(aria-label="Page navigation")
ul(class="pagination justify-content-center")
li(class="page-item", class=(sort == "asc" ? "active" : false))
a(class="page-link", href=(sort == "asc" ? "javascript:void(0)" : "/blocks?limit=" + limit + "&offset=" + offset + "&sort=asc"))
a(class="page-link", href=(sort == "asc" ? "javascript:void(0)" : "/blocks?limit=" + limit + "&offset=0" + "&sort=asc"))
span(aria-hidden="true") Oldest blocks first
li(class="page-item", class=(sort == "desc" ? "active" : false))
a(class="page-link", href=(sort == "desc" ? "javascript:void(0)" : "/blocks?limit=" + limit + "&offset=" + offset + "&sort=desc"))
a(class="page-link", href=(sort == "desc" ? "javascript:void(0)" : "/blocks?limit=" + limit + "&offset=0" + "&sort=desc"))
span(aria-hidden="true") Newest blocks first
include includes/blocks-list.pug

Loading…
Cancel
Save