diff --git a/src/page.h b/src/page.h index 3eb4ae0..9770e94 100644 --- a/src/page.h +++ b/src/page.h @@ -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()} }; diff --git a/src/templates/css/style.css b/src/templates/css/style.css index fb9774f..71825fe 100644 --- a/src/templates/css/style.css +++ b/src/templates/css/style.css @@ -5,6 +5,10 @@ body { background-color: black; } +h1, h2, h3, h4, h5, h6 { + text-align: center; +} + .center { margin: auto; width: 96%; diff --git a/src/templates/footer.html b/src/templates/footer.html index 17c7245..5bda3ad 100644 --- a/src/templates/footer.html +++ b/src/templates/footer.html @@ -1,3 +1,14 @@ +
+
+ Server time {{server_timestamp}} | + {{#refresh}} + Autorefresh is ON (10 s) + {{/refresh}} + {{^refresh}} + Autorefresh is OFF + {{/refresh}} +
+
\ No newline at end of file diff --git a/src/templates/header.html b/src/templates/header.html index 052a7a2..6459cd2 100644 --- a/src/templates/header.html +++ b/src/templates/header.html @@ -3,7 +3,7 @@ {{#refresh}} - + {{/refresh}} Hidden Monero Explorer diff --git a/src/templates/index.html b/src/templates/index.html index 2695902..9eb4453 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -1,20 +1,14 @@ -

Hidden Monero Blockchain Explorer

-

- Current height: {{height}} | Server time {{server_timestamp}} | - {{#refresh}} - Autorefresh is ON (20 s) - {{/refresh}} - {{^refresh}} - Autorefresh is OFF - {{/refresh}} -

+
+

Hidden Monero Blockchain Explorer

+

(no javascript - no web analytics trackers - no images - open sourced)

+
{{{mempool_info}}} -

100 recent blocks

+

100 recent blocks