diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-30 16:04:46 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:05 +0100 |
commit | 2de58c97a5e7d9c0687f66da291c6dc3d37a755a (patch) | |
tree | 309fbec784cb12f424503d0b519ab3a943333a37 /bitbake/lib/toaster/toastergui/templates | |
parent | ce9cff5b2836ae202c28acc7ca8dda65e14c1d56 (diff) | |
download | poky-2de58c97a5e7d9c0687f66da291c6dc3d37a755a.tar.gz |
bitbake: 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.
(Bitbake rev: c3ff90c9f028bff5733ebac7b5e72a4688addd3e)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/mrb_section.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 212998a6b2..2780ac591e 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html | |||
@@ -18,7 +18,7 @@ | |||
18 | }); | 18 | }); |
19 | </script> | 19 | </script> |
20 | 20 | ||
21 | {%if mru and mru.count > 0%} | 21 | {%if mru %} |
22 | 22 | ||
23 | {%if mrb_type == 'project' %} | 23 | {%if mrb_type == 'project' %} |
24 | <h2 class="page-header"> | 24 | <h2 class="page-header"> |