Browse Source

reverted blocks changes

pull/1/head
dan_s 2 years ago
parent
commit
ae5ab0d4d3
  1. 1
      var/www/dragonx.is/explorer.css
  2. 5
      var/www/explorer.dragonx.is/bin/update_blocks_redis.pl
  3. 4
      var/www/explorer.dragonx.is/template.html

1
var/www/dragonx.is/explorer.css

@ -115,6 +115,7 @@ input[id="dragonx-tab"]:not(:checked) ~ * .explorer-tab:nth-child(2):hover {
z-index: 4;
background-color: var(--item-bg-grey);
width: 90vh;
height: 60vh;
/* height: 60vh; */
padding-bottom: 1vh;
margin-bottom: -33vh;

5
var/www/explorer.dragonx.is/bin/update_blocks_redis.pl

@ -67,8 +67,9 @@ for my $h ($height-80 .. $height) {
my $cmd = "mkdir -p $blockdir";
qx{$cmd};
warn $cmd;
my $block_template_file = "$root/template.html";
# my $block_template_file = "$root/block/template.html";
# my $block_template_file = "$root/template.html";
my $block_template_file = "$root/block/template.html";
# my $new_block_file = "$root/index.html";
my $new_block_file = "$blockdir/index.html";
# TODO: process template with block details
my $block_template = readfile($block_template_file);

4
var/www/explorer.dragonx.is/template.html

@ -66,7 +66,7 @@
<div class="explorer-content-body">
<section class="explorer-content">
<div class="hush-tab-info-bar"><span>DragonX Was built on the&nbsp<a href="https://hush.is">HUSH</a> Blockchain.</span></div>
#BLOCKS_TABLE#
<!-- #BLOCKS_TABLE# -->
<!-- <div class="explorer-blocks-bar">
<a href="/block/$height/" class="block-height">$height</a>
<span href="/block/$height/" class="block-duration">${duration}s</span>
@ -75,7 +75,7 @@
<span href="/block/$height/" class="block-time">$time</span>
<span href="/block/$height/" class="block-txs">Transactions: $txs</span>
</div> -->
<!-- <img class="logo-hush" src="../img/logo_HUSH.svg" alt=""> -->
<img class="logo-hush" src="../img/logo_HUSH.svg" alt="">
</section>
<section class="explorer-content">
<div class="explorer-content-bar"><span>This Explorer was forked from the&nbsp<a href="htpps://explorer.hush.land"> HUSH Explorer</a>.</span></div>

Loading…
Cancel
Save