templates updated

This commit is contained in:
moneroexamples 2016-04-14 08:19:51 +08:00
parent 522b09e0e2
commit 61902d9448
5 changed files with 22 additions and 13 deletions

View File

@ -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()}
};

View File

@ -5,6 +5,10 @@ body {
background-color: black;
}
h1, h2, h3, h4, h5, h6 {
text-align: center;
}
.center {
margin: auto;
width: 96%;

View File

@ -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>

View File

@ -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">

View File

@ -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">