info that this is testnet added to frontpage

master
moneroexamples 8 years ago
parent 440e43d626
commit e64413bc12

@ -469,6 +469,7 @@ namespace xmreg {
// initalise page tempate map with basic info about blockchain
mstch::map context {
{"testnet" , testnet},
{"refresh" , refresh_page},
{"height" , std::to_string(height)},
{"server_timestamp", xmreg::timestamp_to_str(server_timestamp)},
@ -478,7 +479,7 @@ namespace xmreg {
{"is_page_zero" , !bool(page_no)},
{"next_page" , std::to_string(page_no + 1)},
{"prev_page" , std::to_string((page_no > 0 ? page_no - 1 : 0))},
{"txs" , mstch::array()}, // will keep tx to show
{"txs" , mstch::array()} // will keep tx to show
};
// get reference to txs mstch map to be field below

@ -6,7 +6,7 @@
{{#refresh}}
<meta http-equiv="refresh" content="10">
{{/refresh}}
<title>Onion Monero Explorer</title>
<title>Onion Monero Blockchain Explorer</title>
<!--<link rel="stylesheet" type="text/css" href="/css/style.css">-->
<style type="text/css">
body {

@ -10,6 +10,11 @@
{{^refresh}}
<a href="/autorefresh">Autorefresh is OFF</a>
{{/refresh}}
{{#testnet}}
|
This is <span style="color:#ff6b62">testnet</span> blockchian
{{/testnet}}
</h3>
</div>

Loading…
Cancel
Save