aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/mrb_section.html
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-30 16:04:46 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-01 15:28:23 +0100
commitc3ff90c9f028bff5733ebac7b5e72a4688addd3e (patch)
tree5baf46378da56f07bf7f7dbba690d9293148d2f6 /lib/toaster/toastergui/templates/mrb_section.html
parent0c38441ed99b49dae8ef9613e320f0760853d6aa (diff)
downloadbitbake-c3ff90c9f028bff5733ebac7b5e72a4688addd3e.tar.gz
toaster: don't use mru.count in the template
mru is a list. It has a count method, but it differs from the one for the queryset. Using mru.count causes 'Latest project builds' section to silently disappear when toaster runs on python 3. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui/templates/mrb_section.html')
-rw-r--r--lib/toaster/toastergui/templates/mrb_section.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html
index 212998a6b..2780ac591 100644
--- a/lib/toaster/toastergui/templates/mrb_section.html
+++ b/lib/toaster/toastergui/templates/mrb_section.html
@@ -18,7 +18,7 @@
});
</script>
-{%if mru and mru.count > 0%}
+{%if mru %}
{%if mrb_type == 'project' %}
<h2 class="page-header">