diff --git a/templates/index.html b/templates/index.html index 35141a7..8f35aea 100644 --- a/templates/index.html +++ b/templates/index.html @@ -94,10 +94,23 @@
2025
{% set first_yr=2025 %} + {% set started=namespace( val=0 ) %} + {% set mon_cnt=namespace( now=4 ) %} {% for date, dollars in savings %} {% set yr=date[:4] %} {% set mon=date[5:7] %} {% set day=date[8:10 ] %} + {# inside started if below, we add blank lines to the start of the year so the dates line up #} + {% if started.val == 0 %} + {% if day|int > 14 %} +
+ {% endif %} + {% for _ in range( 1, 2*mon_cnt.now ) %} +
+ {% endfor %} + + {% set started.val = 1 %} + {% endif %} {% if yr|int > first_yr|int and mon == '01' and day|int <= 14 %}