@@ -1278,8 +1278,15 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1278
1278
"<dd ng-if-end>{{build.spec.source.git.ref}}</dd>\n" +
1279
1279
"<dt ng-if-start=\"build.spec.source.contextDir\">Source Context Dir:</dt>\n" +
1280
1280
"<dd ng-if-end>{{build.spec.source.contextDir}}</dd>\n" +
1281
- "<dt ng-if-start=\"build.spec.output.to\">Output Image:</dt>\n" +
1282
- "<dd ng-if-end>{{build.spec.output.to | imageObjectRef : build.metadata.namespace}}</dd>\n" +
1281
+ "<dt ng-if-start=\"outputTo = build.spec.output.to\">Output Image:</dt>\n" +
1282
+ "<dd ng-if-end>\n" +
1283
+ "<a ng-if=\"outputTo.kind === 'ImageStreamTag' && (!outputTo.namespace || build.metadata.namespace === outputTo.namespace)\" ng-href=\"{{outputTo.name | navigateResourceURL : 'ImageStreamTag' : build.metadata.namespace}}\">\n" +
1284
+ "{{outputTo | imageObjectRef : build.metadata.namespace}}\n" +
1285
+ "</a>\n" +
1286
+ "<span ng-if=\"outputTo.kind !== 'ImageStreamTag' || (outputTo.namespace && build.metadata.namespace !== outputTo.namespace)\">\n" +
1287
+ "{{outputTo | imageObjectRef : build.metadata.namespace}}\n" +
1288
+ "</span>\n" +
1289
+ "</dd>\n" +
1283
1290
"<dt ng-if-start=\"build.spec.output.pushSecret.name\">Push Secret:</dt>\n" +
1284
1291
"<dd ng-if-end>{{build.spec.output.pushSecret.name}}</dd>\n" +
1285
1292
"<dt ng-if-start=\"build.spec.strategy.jenkinsPipelineStrategy.jenkinsfilePath\">\n" +
@@ -1897,11 +1904,25 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1897
1904
"</div>\n" +
1898
1905
"</div>\n" +
1899
1906
"</div>\n" +
1900
- "<dt ng-if-start=\"(buildConfig | buildStrategy).from\">Builder Image:</dt>\n" +
1901
- "<dd ng-if-end>{{(buildConfig | buildStrategy).from | imageObjectRef : buildConfig.metadata.namespace}}</dd>\n" +
1902
- "<div ng-if=\"buildConfig.spec.output.to\">\n" +
1907
+ "<dt ng-if-start=\"buildFrom = (buildConfig | buildStrategy).from\">Builder Image:</dt>\n" +
1908
+ "<dd ng-if-end>\n" +
1909
+ "<a ng-if=\"buildFrom.kind === 'ImageStreamTag' && (!buildFrom.namespace || buildConfig.metadata.namespace === buildFrom.namespace)\" ng-href=\"{{buildFrom.name | navigateResourceURL : 'ImageStreamTag' : buildConfig.metadata.namespace}}\">\n" +
1910
+ "{{buildFrom | imageObjectRef : buildConfig.metadata.namespace}}\n" +
1911
+ "</a>\n" +
1912
+ "<span ng-if=\"buildFrom.kind !== 'ImageStreamTag' || (buildFrom.namespace && buildConfig.metadata.namespace !== buildFrom.namespace)\">\n" +
1913
+ "{{buildFrom | imageObjectRef : buildConfig.metadata.namespace}}\n" +
1914
+ "</span>\n" +
1915
+ "</dd>\n" +
1916
+ "<div ng-if=\"outputTo = buildConfig.spec.output.to\">\n" +
1903
1917
"<dt>Output To:</dt>\n" +
1904
- "<dd>{{buildConfig.spec.output.to | imageObjectRef : buildConfig.metadata.namespace}}</dd>\n" +
1918
+ "<dd>\n" +
1919
+ "<a ng-if=\"outputTo.kind === 'ImageStreamTag' && (!outputTo.namespace || buildConfig.metadata.namespace === outputTo.namespace)\" ng-href=\"{{outputTo.name | navigateResourceURL : 'ImageStreamTag' : buildConfig.metadata.namespace}}\">\n" +
1920
+ "{{outputTo | imageObjectRef : buildConfig.metadata.namespace}}\n" +
1921
+ "</a>\n" +
1922
+ "<span ng-if=\"outputTo.kind !== 'ImageStreamTag' || (outputTo.namespace && buildConfig.metadata.namespace !== outputTo.namespace)\">\n" +
1923
+ "{{outputTo | imageObjectRef : buildConfig.metadata.namespace}}\n" +
1924
+ "</span>\n" +
1925
+ "</dd>\n" +
1905
1926
"</div>\n" +
1906
1927
"<div class=\"run-policy\">\n" +
1907
1928
"<dt>Run Policy:</dt>\n" +
@@ -1963,8 +1984,13 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1963
1984
"<dt>\n" +
1964
1985
"New Image For:\n" +
1965
1986
"</dt>\n" +
1966
- "<dd>\n" +
1967
- "{{(trigger.imageChange.from || (buildConfig | buildStrategy).from) | imageObjectRef : buildConfig.metadata.namespace}}\n" +
1987
+ "<dd ng-init=\"triggerFrom = (trigger.imageChange.from || (buildConfig | buildStrategy).from)\">\n" +
1988
+ "<a ng-if=\"triggerFrom.kind === 'ImageStreamTag' && (!triggerFrom.namespace || buildConfig.metadata.namespace === triggerFrom.namespace)\" ng-href=\"{{triggerFrom.name | navigateResourceURL : 'ImageStreamTag' : buildConfig.metadata.namespace}}\">\n" +
1989
+ "{{triggerFrom | imageObjectRef : buildConfig.metadata.namespace}}\n" +
1990
+ "</a>\n" +
1991
+ "<span ng-if=\"triggerFrom.kind !== 'ImageStreamTag' || (triggerFrom.namespace && buildConfig.metadata.namespace !== triggerFrom.namespace)\">\n" +
1992
+ "{{triggerFrom | imageObjectRef : buildConfig.metadata.namespace}}\n" +
1993
+ "</span>\n" +
1968
1994
"</dd>\n" +
1969
1995
"</div>\n" +
1970
1996
"<div ng-switch-when=\"ConfigChange\">\n" +
0 commit comments