From 56d4c84cec911a9cf44848b0de6e04617fe7d82d Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Fri, 2 Oct 2015 18:03:55 +0100 Subject: bitbake: toaster: Clean up template code Some errors in the HTML template didn't show up until they were rendering command line builds. One useless conditional was lingering in another template. Clean up these issues to display the latest builds section correctly. (Bitbake rev: c781d6be94a25f942946d3a406e07791385e4596) Signed-off-by: Elliot Smith Signed-off-by: Ed Bartosh Signed-off-by: brian avery Signed-off-by: Richard Purdie --- .../lib/toaster/toastergui/templates/builds.html | 5 ----- .../toaster/toastergui/templates/mrb_section.html | 21 ++++++++++----------- 2 files changed, 10 insertions(+), 16 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/builds.html b/bitbake/lib/toaster/toastergui/templates/builds.html index 566c279ddd..459fcb0744 100644 --- a/bitbake/lib/toaster/toastergui/templates/builds.html +++ b/bitbake/lib/toaster/toastergui/templates/builds.html @@ -29,8 +29,6 @@ {% include "mrb_section.html" %} - - {% if 1 %} - - {% else %} {% include "basetable_top.html" %} @@ -117,7 +113,6 @@ {% include "basetable_bottom.html" %} {% endif %} {# objects.paginator.count #} -{% endif %} {# empty #} {% endblock %} diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 55687a16ef..bd8f99178f 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html @@ -22,19 +22,18 @@ {% endif %}
{% for build in mru %} -
- - - {{build.project.name}} - - - {% endif %} +
+ {% if mrb_type != 'project' %} + + + {{build.project.name}} + + + {% endif %}
-
+
{%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} - + {% endif %} {% if build.target_set.all.count > 0 %}