From: Elliot Smith Date: Fri, 2 Oct 2015 17:03:55 +0000 (+0100) Subject: toaster: Clean up template code X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c781d6be94a25f942946d3a406e07791385e4596;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Elliot Smith Signed-off-by: Ed Bartosh Signed-off-by: brian avery --- diff --git a/lib/toaster/toastergui/templates/builds.html b/lib/toaster/toastergui/templates/builds.html index 566c279ddd8..459fcb07447 100644 --- a/lib/toaster/toastergui/templates/builds.html +++ b/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/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html index 55687a16ef9..bd8f99178f7 100644 --- a/lib/toaster/toastergui/templates/mrb_section.html +++ b/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 %}