Add info to the build pane that shows if a trigger started the build

This commit is contained in:
Joseph Schorr 2014-02-20 13:27:59 -05:00
parent 5b0300ab62
commit c494c889f5
5 changed files with 37 additions and 11 deletions

View file

@ -936,7 +936,11 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope
};
$scope.adjustLogHeight = function() {
$('.build-logs').height($(window).height() - 415);
var triggerOffset = 0;
if ($scope.currentBuild && $scope.currentBuild.trigger) {
triggerOffset = 85;
}
$('.build-logs').height($(window).height() - 415 - triggerOffset);
};
$scope.askRestartBuild = function(build) {