From 55ae14b846fd17b49d4c2d4b004d79a3458ae9c9 Mon Sep 17 00:00:00 2001 From: moeez96 Date: Thu, 23 Apr 2020 13:32:40 +0500 Subject: [PATCH 1/3] MCKIN-15914 Tips should not show if empty --- .../templates/html/tip_choice_group.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/problem_builder/templates/html/tip_choice_group.html b/problem_builder/templates/html/tip_choice_group.html index 7324c0b8..6fe59d93 100644 --- a/problem_builder/templates/html/tip_choice_group.html +++ b/problem_builder/templates/html/tip_choice_group.html @@ -1,6 +1,8 @@ -
- {% for tip_html in tips_html %} - {{ tip_html|safe }} - {% endfor %} -
- +{% if tips_html %} +
+ {% for tip_html in tips_html %} + {{ tip_html|safe }} + {% endfor %} +
+ +{% endif %} \ No newline at end of file From ea163c35fb9e77af3c98167ccd7a644710337f00 Mon Sep 17 00:00:00 2001 From: moeez96 Date: Thu, 23 Apr 2020 14:02:55 +0500 Subject: [PATCH 2/3] Add line break --- problem_builder/templates/html/tip_choice_group.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problem_builder/templates/html/tip_choice_group.html b/problem_builder/templates/html/tip_choice_group.html index 6fe59d93..94a9dfb8 100644 --- a/problem_builder/templates/html/tip_choice_group.html +++ b/problem_builder/templates/html/tip_choice_group.html @@ -5,4 +5,4 @@ {% endfor %} -{% endif %} \ No newline at end of file +{% endif %} From dd0e4257dc570fae88e8f92169bb892146a95032 Mon Sep 17 00:00:00 2001 From: moeez96 Date: Thu, 30 Apr 2020 15:10:00 +0500 Subject: [PATCH 3/3] increment version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1dec85bc..3a0f2885 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ # Constants ######################################################### -VERSION = '4.0.0' +VERSION = '4.0.1' # Functions #########################################################