Add a build display name, set it from the etag reported by s3 for file uploads.

This commit is contained in:
yackob03 2014-02-12 13:52:12 -05:00
parent e1a4efe35c
commit 85694dd110
8 changed files with 18 additions and 11 deletions

View file

@ -668,11 +668,6 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope
$('.build-logs').height($(window).height() - 365);
};
$scope.getShortId = function(id) {
var lastIndex = id.lastIndexOf('-');
return id.substr(lastIndex + 1);
};
$scope.getCommandKind = function(fullTitle) {
var colon = fullTitle.indexOf(':');
var title = getTitleWithoutStep(fullTitle);

View file

@ -19,7 +19,7 @@
<li ng-class="currentBuild == build ? 'active' : ''" ng-repeat="build in builds">
<a class="build-tab-link" href="javascript:void(0)" ng-click="setCurrentBuild(build.id, true)">
<span class="phase-icon" ng-class="build.phase"></span>
<span>{{ getShortId(build.id) }}</span>
<span>{{ build.display_name }}</span>
</a>
</li>
</ul>