-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathblocks.pug
More file actions
40 lines (31 loc) · 1.01 KB
/
Copy pathblocks.pug
File metadata and controls
40 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
extends layout
block headContent
title Blocks
block content
.clearfix
.float-start
+pageTitle("Blocks")
.float-end
if (blocks)
nav(aria-label="Page navigation")
ul.pagination.justify-content-center.mt-3
li.page-item(class=(sort == "desc" ? "active" : false))
a.page-link(href=(sort == "desc" ? "javascript:void(0)" : `./blocks?limit=${limit}&offset=0&sort=desc`))
span(aria-hidden="true") Newest blocks first
li.page-item(class=(sort == "asc" ? "active" : false))
a.page-link(href=(sort == "asc" ? "javascript:void(0)" : `./blocks?limit=${limit}&offset=0&sort=asc`))
span(aria-hidden="true") Oldest blocks first
if (autoRefresh == "on")
include includes/connection-warning.pug
if (blocks)
+contentSection
include includes/blocks-list.pug
if (blockCount > limit)
if (blocks.length % 2 == 1)
hr.mt-4
else
.mb-2
.mt-4
+pagination(limit, offset, sort, blockCount, paginationBaseUrl, "center", true)
else
p No blocks found