@@ -1247,7 +1247,8 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1247
1247
"<dt>Status:</dt>\n" +
1248
1248
"<dd>\n" +
1249
1249
"<status-icon status=\"build.status.phase\"></status-icon>\n" +
1250
- "{{build.status.phase}}\n" +
1250
+ "<span ng-if=\"!build.status.message || build.status.phase === 'Cancelled'\">{{build.status.phase}}</span>\n" +
1251
+ "<span ng-if=\"build.status.message && build.status.phase !== 'Cancelled'\">{{build.status.message}}</span>\n" +
1251
1252
"<span ng-if=\"build | jenkinsLogURL\">\n" +
1252
1253
"<span class=\"text-muted\">–</span>\n" +
1253
1254
"<a ng-href=\"{{build | jenkinsLogURL}}\" target=\"_blank\">View Log</a>\n" +
@@ -1861,6 +1862,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1861
1862
"<tr>\n" +
1862
1863
"<th>Build</th>\n" +
1863
1864
"<th>Status</th>\n" +
1865
+ "<th>Duration</th>\n" +
1864
1866
"<th>Created</th>\n" +
1865
1867
"</tr>\n" +
1866
1868
"</thead>\n" +
@@ -1877,13 +1879,18 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1877
1879
"<span ng-if=\"!(build | annotation : 'buildNumber')\">\n" +
1878
1880
"<a ng-href=\"{{build | navigateResourceURL}}\">{{build.metadata.name}}</a>\n" +
1879
1881
"</span>\n" +
1880
- "<span ng-if=\"build.status.message\" class=\"pficon pficon-warning-triangle-o\" style=\"cursor: help\" data-toggle=\"popover\" data-trigger=\"hover\" dynamic-content=\"{{build.status.message}}\"></span>\n" +
1881
1882
"</td>\n" +
1882
1883
"<td data-title=\"Status\">\n" +
1883
1884
"<div row class=\"status\">\n" +
1884
- "<build-status build=\"build\"></build-status>\n" +
1885
+ "<status-icon status=\"build.status.phase\" disable-animation fixed-width=\"true\"></status-icon>\n" +
1886
+ "<span ng-if=\"build.status.phase ==='Failed'\">{{(build.status.reason || build.status.phase) | sentenceCase}}</span>\n" +
1887
+ "<span ng-if=\"build.status.phase !== 'Failed'\">{{build.status.phase | sentenceCase}}</span>\n" +
1885
1888
"</div>\n" +
1886
1889
"</td>\n" +
1890
+ "<td data-title=\"Duration\">\n" +
1891
+ "<duration-until-now ng-if=\"build.status.startTimestamp && !build.status.completionTimestamp\" timestamp=\"build.status.startTimestamp\" time-only></duration-until-now>\n" +
1892
+ "<span ng-if=\"build.status.startTimestamp && build.status.completionTimestamp\">{{build.status.startTimestamp | duration : build.status.completionTimestamp}}</span>\n" +
1893
+ "</td>\n" +
1887
1894
"<td data-title=\"Created\">\n" +
1888
1895
"<span am-time-ago=\"build.metadata.creationTimestamp\"></span>\n" +
1889
1896
"</td>\n" +
@@ -2136,7 +2143,6 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
2136
2143
"<div ng-if=\"build\">\n" +
2137
2144
"<h1>\n" +
2138
2145
"{{build.metadata.name}}\n" +
2139
- "<span ng-if=\"build.status.message\" class=\"pficon pficon-warning-triangle-o\" style=\"cursor: help\" data-toggle=\"popover\" data-trigger=\"hover\" dynamic-content=\"{{build.status.message}}\"></span>\n" +
2140
2146
"<span class=\"pficon pficon-warning-triangle-o\" ng-if=\"buildConfigPaused || buildConfigDeleted\" aria-hidden=\"true\" data-toggle=\"tooltip\" data-original-title=\"{{buildConfigDeleted ? 'The build configuration for this build no longer exists.' : 'Building from build configuration ' + buildConfig.metadata.name + ' has been paused.'}}\">\n" +
2141
2147
"</span>\n" +
2142
2148
"<small class=\"meta\">created <span am-time-ago=\"build.metadata.creationTimestamp\"></span></small>\n" +
@@ -3930,6 +3936,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
3930
3936
"<th>Name</th>\n" +
3931
3937
"<th>Last Build</th>\n" +
3932
3938
"<th>Status</th>\n" +
3939
+ "<th>Duration</th>\n" +
3933
3940
"<th>Created</th>\n" +
3934
3941
"<th>Type</th>\n" +
3935
3942
"<th>Source</th>\n" +
@@ -3974,9 +3981,16 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
3974
3981
"</td>\n" +
3975
3982
"<td data-title=\"Status\">\n" +
3976
3983
"<div row class=\"status\">\n" +
3977
- "<build-status build=\"latestBuild\"></build-status>\n" +
3984
+ "\n" +
3985
+ "<status-icon status=\"latestBuild.status.phase\" disable-animation fixed-width=\"true\"></status-icon>\n" +
3986
+ "<span ng-if=\"latestBuild.status.phase ==='Failed'\">{{(latestBuild.status.reason || latestBuild.status.phase) | sentenceCase}}</span>\n" +
3987
+ "<span ng-if=\"latestBuild.status.phase !== 'Failed'\">{{latestBuild.status.phase | sentenceCase}}</span>\n" +
3978
3988
"</div>\n" +
3979
3989
"</td>\n" +
3990
+ "<td data-title=\"Duration\">\n" +
3991
+ "<duration-until-now ng-if=\"latestBuild.status.startTimestamp && !latestBuild.status.completionTimestamp\" timestamp=\"latestBuild.status.startTimestamp\" time-only></duration-until-now>\n" +
3992
+ "<span ng-if=\"latestBuild.status.startTimestamp && latestBuild.status.completionTimestamp\">{{latestBuild.status.startTimestamp | duration : latestBuild.status.completionTimestamp}}</span>\n" +
3993
+ "</td>\n" +
3980
3994
"<td data-title=\"Created\">\n" +
3981
3995
"<span am-time-ago=\"latestBuild.metadata.creationTimestamp\"></span>\n" +
3982
3996
"</td>\n" +
0 commit comments