Add new "last updated date" settings
-Added new configurable settings to allow displaying a "last updated date" timestamp for: index, reward, masternode, movement, network, richlist and market pages -Affected pages are now configured to be completely hidden and disabled when their display settings are set to false
This commit is contained in:
@@ -77,6 +77,9 @@ block content
|
||||
strong #{settings.locale.ex_error}
|
||||
div #{error}
|
||||
.col-md-12.cardSpacer
|
||||
if settings.index.show_last_updated == true
|
||||
div.font-weight-bold(style='margin-bottom:15px;') Blockchain data last updated:
|
||||
span.font-weight-normal=(last_updated == null || last_updated == '0' ? ' N/A' : ' ' + format_unixtime(last_updated))
|
||||
.card.card-default.border-0.cardSpacer
|
||||
.card-header
|
||||
strong #{settings.locale.ex_latest_transactions}
|
||||
|
||||
@@ -50,6 +50,9 @@ block content
|
||||
});
|
||||
});
|
||||
.col-xs-12.col-md-12
|
||||
if settings.markets_page.show_last_updated == true
|
||||
div.font-weight-bold(style='margin-bottom:15px;') Market data last updated:
|
||||
span.font-weight-normal=(last_updated == null || last_updated == '0' ? ' N/A' : ' ' + format_unixtime(last_updated))
|
||||
if settings.markets.market_select_visible == true && settings.market_data.length > 1
|
||||
.row
|
||||
.col-md-12.cardSpacer
|
||||
|
||||
@@ -93,8 +93,9 @@ block content
|
||||
.col-md-12.cardSpacer
|
||||
.text-center(style='margin-bottom:15px;')
|
||||
i The current listing of all masternodes known to be active on the network.
|
||||
div.font-weight-bold(style='margin-bottom:15px;') Last updated:
|
||||
span.font-weight-normal=(last_updated == null ? ' N/A' : ' ' + format_unixtime(last_updated))
|
||||
if settings.masternodes_page.show_last_updated == true
|
||||
div.font-weight-bold(style='margin-bottom:15px;') Masternode list last updated:
|
||||
span.font-weight-normal=(last_updated == null || last_updated == '0' ? ' N/A' : ' ' + format_unixtime(last_updated))
|
||||
.card.card-default
|
||||
.card-header
|
||||
strong Masternodes
|
||||
|
||||
@@ -75,6 +75,9 @@ block content
|
||||
}, 45000);
|
||||
});
|
||||
.col-md-12
|
||||
if settings.movement_page.show_last_updated == true
|
||||
div.font-weight-bold(style='margin-bottom:15px;') Blockchain data last updated:
|
||||
span.font-weight-normal=(last_updated == null || last_updated == '0' ? ' N/A' : ' ' + format_unixtime(last_updated))
|
||||
.card.card-default.border-0.cardSpacer
|
||||
.card-header
|
||||
strong="Latest Movement"
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
include ./includes/common.pug
|
||||
.col-md-12.cardSpacer
|
||||
.text-center(style='margin-bottom:15px;')
|
||||
i #{settings.locale.net_warning}
|
||||
.container
|
||||
if settings.network_page.show_last_updated == true
|
||||
div.font-weight-bold(style='margin-bottom:15px;') Network data last updated:
|
||||
span.font-weight-normal=(last_updated == null || last_updated == '0' ? ' N/A' : ' ' + format_unixtime(last_updated))
|
||||
ul.nav.nav-tabs(role='tablist')
|
||||
li.nav-item(role='presentation')
|
||||
a.nav-link.active(href='#connections', aria-controls='connections', role='tab', data-toggle='tab') #{settings.locale.net_connections}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
include ./includes/common.pug
|
||||
script.
|
||||
$(document).ready(function() {
|
||||
$('.summary-table').dataTable({
|
||||
@@ -17,6 +18,9 @@ block content
|
||||
});
|
||||
.row(style='margin-left:0;margin-right:0;')
|
||||
.col-xs-12.col-md-12
|
||||
if settings.reward_page.show_last_updated == true
|
||||
div.font-weight-bold(style='margin-bottom:15px;') Reward data last updated:
|
||||
span.font-weight-normal=(last_updated == null || last_updated == '0' ? ' N/A' : ' ' + format_unixtime(last_updated))
|
||||
.card.card-default.border-0.card-address-summary
|
||||
.card-header(style='position:relative;')
|
||||
strong #{settings.locale.heavy_title}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
include ./includes/common.pug
|
||||
if show_dist == true
|
||||
script.
|
||||
$(document).ready(function() {
|
||||
@@ -34,6 +35,9 @@ block content
|
||||
.row(style='margin-left:0;margin-right:0;')
|
||||
div(class=(show_dist == true ? 'col-xs-12 col-lg-8' : 'col-12'))
|
||||
.container
|
||||
if settings.richlist_page.show_last_updated == true
|
||||
div.font-weight-bold(style='margin-bottom:15px;') Top 100 data last updated:
|
||||
span.font-weight-normal=(last_updated == null || last_updated == '0' ? ' N/A' : ' ' + format_unixtime(last_updated))
|
||||
ul.nav.nav-tabs(role='tablist')
|
||||
li.nav-item(role='presentation')
|
||||
a.nav-link.active(href='#balance', aria-controls='balance', role='tab', data-toggle='tab') #{settings.locale.rl_current_balance}
|
||||
|
||||
Reference in New Issue
Block a user