diff --git a/static/css/directives/ui/build-logs-view.css b/static/css/directives/ui/build-logs-view.css index a6e17bca5..e4da34a65 100644 --- a/static/css/directives/ui/build-logs-view.css +++ b/static/css/directives/ui/build-logs-view.css @@ -6,7 +6,7 @@ box-shadow: inset 10px 10px 5px -9px rgba(0,0,0,0.75); background-color: #263945; - min-height: 100px; + min-height: 74px; } .build-logs-view .co-alert { diff --git a/static/directives/build-logs-view.html b/static/directives/build-logs-view.html index 12ad935ab..44a5d05ac 100644 --- a/static/directives/build-logs-view.html +++ b/static/directives/build-logs-view.html @@ -24,12 +24,17 @@ please check for JavaScript or networking issues and contact support. +
+ You are not authorized to view builds logs. Please have the owner of the repository grant you + admin access to this repository. +
+
Refreshing Build Status...
-
+
(Waiting for build to start) diff --git a/static/js/directives/ui/build-logs-view.js b/static/js/directives/ui/build-logs-view.js index a31fe253a..24d73903e 100644 --- a/static/js/directives/ui/build-logs-view.js +++ b/static/js/directives/ui/build-logs-view.js @@ -132,10 +132,16 @@ angular.module('quay').directive('buildLogsView', function () { } handleLogsData(resp, callback); - }, function() { + }, function(resp) { + if (resp.status == 403) { + $scope.loadError = 'unauthorized'; + } else { + $scope.loadError = 'request-failed'; + } callback(false); }); }, function() { + $scope.loadError = 'request-failed'; callback(false); }); };