mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
templates updated
This commit is contained in:
parent
522b09e0e2
commit
61902d9448
5 changed files with 22 additions and 13 deletions
|
@ -74,7 +74,7 @@ namespace xmreg {
|
||||||
// initalise page tempate map with basic info about blockchain
|
// initalise page tempate map with basic info about blockchain
|
||||||
mstch::map context {
|
mstch::map context {
|
||||||
{"refresh", refresh_page},
|
{"refresh", refresh_page},
|
||||||
{"height", fmt::format("{:d}", height + 1)},
|
{"height", fmt::format("{:d}", height)},
|
||||||
{"server_timestamp", xmreg::timestamp_to_str(server_timestamp)},
|
{"server_timestamp", xmreg::timestamp_to_str(server_timestamp)},
|
||||||
{"blocks", mstch::array()}
|
{"blocks", mstch::array()}
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,6 +5,10 @@ body {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
width: 96%;
|
width: 96%;
|
||||||
|
|
|
@ -1,3 +1,14 @@
|
||||||
|
<div class="center">
|
||||||
|
<h5>
|
||||||
|
Server time {{server_timestamp}} |
|
||||||
|
{{#refresh}}
|
||||||
|
<a href="/">Autorefresh is ON (10 s)</a>
|
||||||
|
{{/refresh}}
|
||||||
|
{{^refresh}}
|
||||||
|
<a href="/autorefresh">Autorefresh is OFF</a>
|
||||||
|
{{/refresh}}
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
{{#refresh}}
|
{{#refresh}}
|
||||||
<meta http-equiv="refresh" content="20">
|
<meta http-equiv="refresh" content="10">
|
||||||
{{/refresh}}
|
{{/refresh}}
|
||||||
<title>Hidden Monero Explorer</title>
|
<title>Hidden Monero Explorer</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
||||||
|
|
|
@ -1,20 +1,14 @@
|
||||||
|
|
||||||
<h1>Hidden Monero Blockchain Explorer</h1>
|
<div class="center">
|
||||||
<h2>
|
<h1 class="center">Hidden Monero Blockchain Explorer</h1>
|
||||||
Current height: {{height}} | Server time {{server_timestamp}} |
|
<h3 style="font-size: 12px; margin-top: 0px">(no javascript - no web analytics trackers - no images - open sourced)</h3>
|
||||||
{{#refresh}}
|
</div>
|
||||||
<a href="/">Autorefresh is ON (20 s)</a>
|
|
||||||
{{/refresh}}
|
|
||||||
{{^refresh}}
|
|
||||||
<a href="/autorefresh">Autorefresh is OFF</a>
|
|
||||||
{{/refresh}}
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
|
|
||||||
{{{mempool_info}}}
|
{{{mempool_info}}}
|
||||||
|
|
||||||
|
|
||||||
<h2>100 recent blocks</h2>
|
<h2>100 recent blocks<!--(height: {{height}})--></h2>
|
||||||
|
|
||||||
<div class="center">
|
<div class="center">
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue