From e48314022cceb053e7eb83c76a81f62ba5bf2ba5 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Thu, 6 Aug 2020 17:53:11 -0500 Subject: [PATCH] Fix halving message from showing on new device setup --- .../includes/main_page_messages.html | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/rootfs/standard/var/www/mynode/templates/includes/main_page_messages.html b/rootfs/standard/var/www/mynode/templates/includes/main_page_messages.html index ce7ea485..a240d458 100644 --- a/rootfs/standard/var/www/mynode/templates/includes/main_page_messages.html +++ b/rootfs/standard/var/www/mynode/templates/includes/main_page_messages.html @@ -22,28 +22,29 @@ {% endif %} - - -{% set blocks_until_halving = 210000 - (current_block % 210000) %} -{% if blocks_until_halving < 1000 %} -
- - - - - - -
{{ blocks_until_halving }} blocks to the halving...
-
-{% endif %} -{% if blocks_until_halving > 209400 %} -
- - - - - - -
Happy Halving!!!
-
+ +{% if current_block > 100000 %} + {% set blocks_until_halving = 210000 - (current_block % 210000) %} + {% if blocks_until_halving < 1000 %} +
+ + + + + + +
{{ blocks_until_halving }} blocks to the halving...
+
+ {% endif %} + {% if blocks_until_halving > 209400 %} +
+ + + + + + +
Happy Halving!!!
+
+ {% endif %} {% endif %} \ No newline at end of file