summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>2014-11-24 18:27:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-28 14:02:59 +0000
commitbe2475b409ce4d959cba9dbde56f3e3de903a94a (patch)
tree35bc9a6c01c6245b560d05839d669ab88053f25a /bitbake
parent126bca43b72cc01bb71f6f449d1a3cc4254726d7 (diff)
downloadpoky-be2475b409ce4d959cba9dbde56f3e3de903a94a.tar.gz
bitbake: toaster: fix errors and warnings display
In the 'Latest builds' section of the project page, show number of errors and number of warnings as we show them in the all builds page. (Bitbake rev: 3f6b33472820e339c0f057c2e30f25ec2a04366b) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/project.html20
1 files changed, 18 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html
index 18a52bf891..0b2821cdf6 100644
--- a/bitbake/lib/toaster/toastergui/templates/project.html
+++ b/bitbake/lib/toaster/toastergui/templates/project.html
@@ -178,8 +178,24 @@ vim: expandtab tabstop=2
178 {[b.build[0].completed_on|date:'dd/MM/yy HH:mm']} 178 {[b.build[0].completed_on|date:'dd/MM/yy HH:mm']}
179 </ngif> 179 </ngif>
180 </div> 180 </div>
181 <div class="span2"><span><a href="{[b.build[0].build_page_url]}#errors" class="lead error" ng-if="b.build[0].errors">{[b.build[0].errors]}</a></span></div> 181 <div class="span2">
182 <div class="span2"><span><a href="{[b.build[0].build_page_url]}#warnings" class="lead warning" ng-if="b.build[0].warnings">{[b.build[0].warnings]}</a></span></div> 182 <ngif ng-if="b.build[0].errors">
183 <span>
184 <i class="icon-minus-sign red lead"></i>
185 <a href="{[b.build[0].build_page_url]}#errors" class="lead error">{[b.build[0].errors]}
186 <ng-pluralize count="b.build[0].errors" when="{'1':'error','other':'errors'}"></ng-pluralize></a>
187 </span>
188 </ngif>
189 </div>
190 <div class="span2">
191 <ngif ng-if="b.build[0].warnings">
192 <span>
193 <i class="icon-warning-sign yellow lead"></i>
194 <a href="{[b.build[0].build_page_url]}#warnings" class="lead warning">{[b.build[0].warnings]}
195 <ng-pluralize count="b.build[0].warnings" when="{'1':'warning','other':'warnings'}"></ng-pluralize></a>
196 </span>
197 </ngif>
198 </div>
183 <div> <span class="lead">Build time: <a href="{[b.build[0].build_time_page_url]}">{[b.build[0].build_time|timediff]}</a></span> 199 <div> <span class="lead">Build time: <a href="{[b.build[0].build_time_page_url]}">{[b.build[0].build_time|timediff]}</a></span>
184 <button class="btn pull-right" ng-class="{'Succeeded': 'btn-success', 'Failed': 'btn-danger'}[b.build[0].status]" 200 <button class="btn pull-right" ng-class="{'Succeeded': 'btn-success', 'Failed': 'btn-danger'}[b.build[0].status]"
185 ng-click="targetExistingBuild(b.targets)">Run again</button> 201 ng-click="targetExistingBuild(b.targets)">Run again</button>