summaryrefslogtreecommitdiff
path: root/lib/toaster/toastergui/templates/mrb_section.html
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2015-09-29 08:15:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-29 14:11:00 +0100
commitce9a7f1819a1897878ce154b3ee7e727a76165b0 (patch)
treed348f02bb63a24e78cb56b3f1e31d5e2b6ccbc5a /lib/toaster/toastergui/templates/mrb_section.html
parent505979ab931e3a2a218d7030d6064987e8f9ff14 (diff)
downloadbitbake-ce9a7f1819a1897878ce154b3ee7e727a76165b0.zip
toaster: display most recent builds for projects
Display the most recent builds in the given project's build page. [YOCTO #8186] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Elliot Smith <elliot.smith@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.html16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html
index b2c49fe3..2fefe4b0 100644
--- a/lib/toaster/toastergui/templates/mrb_section.html
+++ b/lib/toaster/toastergui/templates/mrb_section.html
@@ -3,13 +3,19 @@
{% load humanize %}
-{%if mru.count > 0%}
+{%if mru and mru.count > 0%}
- <div class="page-header">
+ {%if mrb_type == 'project' %}
+ <h2>
+ Latest project builds
+ </h2>
+ {% else %}
+ <div class="page-header">
<h1>
- Latest builds
- </h1>
- </div>
+ Latest builds
+ </h1>
+ </div>
+ {% endif %}
<div id="latest-builds">
{% for build in mru %}
<div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%} project-name ">