templates updated

master
moneroexamples 9 years ago
parent 522b09e0e2
commit 61902d9448

@ -74,7 +74,7 @@ namespace xmreg {
// initalise page tempate map with basic info about blockchain
mstch::map context {
{"refresh", refresh_page},
{"height", fmt::format("{:d}", height + 1)},
{"height", fmt::format("{:d}", height)},
{"server_timestamp", xmreg::timestamp_to_str(server_timestamp)},
{"blocks", mstch::array()}
};

@ -5,6 +5,10 @@ body {
background-color: black;
}
h1, h2, h3, h4, h5, h6 {
text-align: center;
}
.center {
margin: auto;
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>
</body>
</html>

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
{{#refresh}}
<meta http-equiv="refresh" content="20">
<meta http-equiv="refresh" content="10">
{{/refresh}}
<title>Hidden Monero Explorer</title>
<link rel="stylesheet" type="text/css" href="/css/style.css">

@ -1,20 +1,14 @@
<h1>Hidden Monero Blockchain Explorer</h1>
<h2>
Current height: {{height}} | Server time {{server_timestamp}} |
{{#refresh}}
<a href="/">Autorefresh is ON (20 s)</a>
{{/refresh}}
{{^refresh}}
<a href="/autorefresh">Autorefresh is OFF</a>
{{/refresh}}
</h2>
<div class="center">
<h1 class="center">Hidden Monero Blockchain Explorer</h1>
<h3 style="font-size: 12px; margin-top: 0px">(no javascript - no web analytics trackers - no images - open sourced)</h3>
</div>
{{{mempool_info}}}
<h2>100 recent blocks</h2>
<h2>100 recent blocks<!--(height: {{height}})--></h2>
<div class="center">

Loading…
Cancel
Save