← flask-blog

highlight when certain conditions met, if statement

91c8479acf37d258e9ffaf66bf4a77233b78296b · ovidiucs · May 12, 2015 20:18

+2 · 1 file changed

  • templates/weather-average.html +2 −0
diff --git a/templates/weather-average.html b/templates/weather-average.html
index b36ee39..d9a6bff 100644
--- a/templates/weather-average.html
+++ b/templates/weather-average.html
@@ -13,6 +13,8 @@
             <td>{{ month }}</td>
             <td>
                 {% set hl = weather[month]['min'] <= highlight['min'] %}
+            {# set a variable hl, to a condition if, number to show is less
+            row equal to highlight minimum  #}
                 {% if hl %}<b>{% endif %}
                 {{ weather[month]['min'] }}
                 {% if hl %}</b>{% endif %}