-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39371a2
commit f818a93
Showing
16 changed files
with
310 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.page-select { | ||
display: flex; | ||
} | ||
|
||
.paginationjs { | ||
font-size: 16px; | ||
box-sizing: initial; | ||
margin-left: auto; | ||
} | ||
.paginationjs:after { | ||
display: table; | ||
content: " "; | ||
clear: both; | ||
} | ||
.paginationjs .paginationjs-pages { | ||
float: left; | ||
} | ||
.paginationjs .paginationjs-pages ul { | ||
float: left; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.paginationjs .paginationjs-pages li { | ||
float: left; | ||
list-style: none; | ||
} | ||
.paginationjs .paginationjs-pages li > a { | ||
width: 22px; | ||
height: 22px; | ||
line-height: 22px; | ||
margin: 0 2px; | ||
display: block; | ||
background: #fff; | ||
color: #3D5873; | ||
text-decoration: none; | ||
text-align: center; | ||
border-radius: 3px; | ||
} | ||
.paginationjs .paginationjs-pages li > a:hover { | ||
background: #eee; | ||
} | ||
.paginationjs .paginationjs-pages li.active > a { | ||
background:#E6EAED; | ||
color: #2970FF; | ||
} | ||
.paginationjs .paginationjs-pages li.disabled > a { | ||
opacity: .3; | ||
} | ||
.paginationjs .paginationjs-pages li.disabled > a:hover { | ||
background: none; | ||
} | ||
|
||
.paginationjs .pagination-arrow { | ||
height: 100%; | ||
width: 100%; | ||
background-repeat: no-repeat; | ||
background-size: 13px 12px; | ||
background-position: center; | ||
} | ||
.paginationjs .pagination-arrow-right { | ||
background-image: url(/images/right_arrow.svg); | ||
} | ||
.paginationjs .pagination-arrow-left { | ||
background-image: url(/images/left_arrow.svg); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
$('#mined-blocks-page-select').pagination({ | ||
dataSource: "/mined_blocks", | ||
autoHideNext: false, | ||
autoHidePrevious: false, | ||
hideWhenLessThanOnePage: true, | ||
pageSize: 10, | ||
nextText: '<div class="pagination-arrow pagination-arrow-right"></div>', | ||
prevText: '<div class="pagination-arrow pagination-arrow-left"></div>', | ||
locator: "blocks", | ||
totalNumberLocator: function(response) { | ||
return response.count; | ||
}, | ||
callback: function(data) { | ||
var html = ''; | ||
|
||
if (data.length > 0) { | ||
$.each(data, function(index, item){ | ||
html += '<tr><td><a href="' + item.blockurl + '" rel="noopener noreferrer">' + item.blockheight + '</a></td><td>' + item.miner + '</td><td><span class="dcr-label">' + item.minedby + '</span></td></tr>'; | ||
}); | ||
} else { | ||
html += '<tr><td colspan="100%"><span class="no-data">No mined blocks</span></td></tr>'; | ||
} | ||
$('#mined-blocks-table-body').html(html); | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.