diff --git a/static/resources/js/components/repository/popup-details.directive.js b/static/resources/js/components/repository/popup-details.directive.js index 59311917a..877b0b8f1 100644 --- a/static/resources/js/components/repository/popup-details.directive.js +++ b/static/resources/js/components/repository/popup-details.directive.js @@ -34,9 +34,9 @@ } function getManifestSuccess(data, status) { - console.log('Successful get manifest:' + data); - vm.manifest = data; - vm.manifest['Created'] = $filter('dateL')(vm.manifest['Created'], 'YYYY-MM-DD HH:mm:ss'); + console.log('Successful get manifest:' + data); + vm.manifest = angular.fromJson(data.manifest.history[0].v1Compatibility); + vm.manifest['created'] = $filter('dateL')(vm.manifest['created'], 'YYYY-MM-DD HH:mm:ss'); } function getManifestFailed(data, status) { @@ -89,21 +89,19 @@ var content = '
' + '
' + '' + - '

' + + '

' + '
' + - '

' + + '

' + '
' + - '

' + ctrl.manifest['Created'] + '

' + - '
' + - '

' + (ctrl.manifest['Duration Days'] === '' ? 'N/A' : ctrl.manifest['Duration Days']) + ' days

' + + '

' + ctrl.manifest['created'] + '

' + '
' + - '

' + (ctrl.manifest['Author'] === '' ? 'N/A' : ctrl.manifest['Author']) + '

' + + '

' + ((!angular.isDefined(ctrl.manifest['author']) || ctrl.manifest['author'] === '') ? 'N/A' : ctrl.manifest['author']) + '

' + '
' + - '

' + (ctrl.manifest['Architecture'] === '' ? 'N/A' : ctrl.manifest['Architecture']) + '

' + + '

' + ((!angular.isDefined(ctrl.manifest['architecture']) || ctrl.manifest['architecture'] === '') ? 'N/A' : ctrl.manifest['architecture']) + '

' + '
' + - '

' + (ctrl.manifest['Docker Version'] === '' ? 'N/A' : ctrl.manifest['Docker Version']) + '

' + + '

' + ((!angular.isDefined(ctrl.manifest['docker_version']) || ctrl.manifest['docker_version'] === '') ? 'N/A' : ctrl.manifest['docker_version']) + '

' + '
' + - '

' + (ctrl.manifest['OS'] === '' ? 'N/A' : ctrl.manifest['OS']) + '

' + + '

' + ((!angular.isDefined(ctrl.manifest['os']) || ctrl.manifest['os'] === '') ? 'N/A' : ctrl.manifest['os']) + '

' + '
'; return content; } diff --git a/static/resources/js/services/repository/services.list-manifest.js b/static/resources/js/services/repository/services.list-manifest.js index b94d70c0c..0a3b5fbf3 100644 --- a/static/resources/js/services/repository/services.list-manifest.js +++ b/static/resources/js/services/repository/services.list-manifest.js @@ -29,7 +29,8 @@ .get('/api/repositories/manifests', { 'params': { 'repo_name': repoName, - 'tag': tag + 'tag': tag, + 'version': 'v1' } }); }