Better error display for build logs view

Fixes #1492
This commit is contained in:
Joseph Schorr 2016-05-31 14:41:45 -04:00
parent af58989046
commit 303db01ec5
3 changed files with 14 additions and 3 deletions

View file

@ -24,12 +24,17 @@
please check for JavaScript or networking issues and contact support.
</div>
<div class="co-alert co-alert-danger" ng-if="loadError == 'unauthorized'">
You are not authorized to view builds logs. Please have the owner of the repository grant you
admin access to this repository.
</div>
<div ng-show="!loadError && pollChannel.skipping">
Refreshing Build Status...
<span class="cor-loader"></span>
</div>
<div ng-show="!pollChannel.skipping">
<div ng-show="!loadError && !pollChannel.skipping">
<span class="no-logs" ng-if="!logEntries.length && currentBuild.phase == 'waiting'">
(Waiting for build to start)
</span>