From ccb88e798973375bb36fd80428c0fed3e560c3ae Mon Sep 17 00:00:00 2001 From: Gustavo Date: Fri, 4 Aug 2017 15:03:43 -0300 Subject: [PATCH] Modified bulletin view template --- bulletin/templates/bulletin/view.html | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/bulletin/templates/bulletin/view.html b/bulletin/templates/bulletin/view.html index ca0cffb..0c1e209 100644 --- a/bulletin/templates/bulletin/view.html +++ b/bulletin/templates/bulletin/view.html @@ -76,10 +76,35 @@ {% for meta in metas%} {{ meta.description }} - + {{ meta.media }}% {{ meta.desejada }} % {{ meta.estabelecida }} % - % + + + {% if meta.alcancada < meta.desejada and meta.alcancada > meta.estabelecida %} + {{ meta.alcancada }}% + {% endif %} + + {% if meta.alcancada > meta.desejada and meta.alcancada < meta.estabelecida %} + {{ meta.alcancada }}% + + {% endif %} + + + + + {% if meta.alcancada > meta.desejada and meta.alcancada > meta.estabelecida %} + {{ meta.alcancada }}% + {% endif %} + + + + {% if meta.alcancada < meta.desejada and meta.alcancada < meta.estabelecida %} + {{ meta.alcancada }}% + + {% endif %} + + {% endfor %} -- libgit2 0.21.2