diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-03-09 16:42:44 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-16 17:44:04 +0000 |
commit | c8714ec0cdcf84d31d9bd944df1923ea7e4339b4 (patch) | |
tree | a2590a3a3fda4b7df4d42f86420396fc8a3a48e3 /bitbake/lib/toaster/toastergui/templates | |
parent | daaafb4b5b715a9a3c04a8bcb5f42f7ab7d95543 (diff) | |
download | ast2050-yocto-poky-c8714ec0cdcf84d31d9bd944df1923ea7e4339b4.zip ast2050-yocto-poky-c8714ec0cdcf84d31d9bd944df1923ea7e4339b4.tar.gz |
bitbake: toastergui: project page - consistent error display
We modify the project page to provide a consistent view of the
build errors. The display is now similar with the
managed_mrb_section and links point to the buildrequest
detail view.
[YOCTO #7188]
(Bitbake rev: d37eaaa48a63a137ded25a14911c97a5ae861ff6)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@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/project.html | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html index 54590ee..039601f 100644 --- a/bitbake/lib/toaster/toastergui/templates/project.html +++ b/bitbake/lib/toaster/toastergui/templates/project.html @@ -130,29 +130,35 @@ vim: expandtab tabstop=2 <switch ng-switch="b.status"> <case ng-switch-when="failed"> - <div class="lead span3"> <span ng-repeat="t in b.targets" ng-include src="'target_display'"></span></div> - <div > - <button class="btn pull-right btn-danger" ng-click="buildExistingTarget(b.targets)">Run again</button> + <div class="lead span3"> + <a ng-class="{'succeeded': 'success', 'failed': 'error'}[b.status]" href="{[b.br_page_url]}"> + <span ng-repeat="t in b.targets" ng-include src="'target_display'"></span> + </a> </div> - <div class="row-fluid"> - <div class="air well" ng-repeat="e in b.errors"> - <pre>{[e.msg]}</pre> - <ngif ng-if="e.msg.indexOf('Nothin') == 0"> - <div ng-repeat="t in getTargetNameFromErrorMsg(e.msg)"> - <p class="lead">The target <strong>{[t]}</strong> is not provided by any of your project layers.</p> - <p> Your build has failed because the target <strong>{[t]}</strong> is not provided by any of your project layers.</p> - <ngif ng-if="layersForTargets[t].length > 0"> - <p>The following layers provide this target. You could add one of them to your project.</p> - <button class="btn btn-danger add-layer-with-dependencies" ng-repeat="l in layersForTargets[t]" ng-click="layerAddById(l.id)">Add {[l.name]}</button> - </ngif> - </div> - </ngif> - <ngif ng-if="e.msg.indexOf('Nothin') != 0"> - <p> - Please contact your system administrator to help troubleshoot this error. - </p> - </ngif> - </div> + <div class="span2 lead"> + <ngif ng-if="b.updated - todaydate > 0"> + {[b.updated|date:'HH:mm']} + </ngif> + <ngif ng-if="b.updated - todaydate < 0"> + {[b.updated|date:'dd/MM/yy HH:mm']} + </ngif> + </div> + <div class="span2"> + <ngif ng-if="b.errors.length"> + <span> + <i class="icon-minus-sign red lead"></i> + <a href="{[b.br_page_url]}#errors" class="lead error">{[b.errors.length]} + <ng-pluralize count="b.errors.length" when="{'1':'error','other':'errors'}"></ng-pluralize></a> + </span> + </ngif> + </div> + <div class="span2"> + <!-- we don't have warnings in this case --> + </div> + <div> <span class="lead">Build time: {[b.command_time|timediff]}</span> + <button class="btn pull-right" ng-class="{'succeeded': 'btn-success', 'failed': 'btn-danger'}[b.status]" + ng-click="buildExistingTarget(b.targets)">Run again</button> + </div> </case> |