add app metadata fields to usage logs component

This commit is contained in:
Jimmy Zelinskie 2017-05-11 13:33:36 -04:00
parent 4db789b656
commit d7564fd627

View file

@ -61,6 +61,8 @@ angular.module('quay').directive('logsView', function () {
'push_repo': function(metadata) {
if (metadata.tag) {
return 'Push of {tag} to repository {namespace}/{repo}';
} else if (metadata.release) {
return 'Push of {release} to repository {namespace}/{repo}';
} else {
return 'Repository push to {namespace}/{repo}';
}
@ -91,6 +93,15 @@ angular.module('quay').directive('logsView', function () {
description = 'tag {tag} from repository {namespace}/{repo}';
} else if (metadata.manifest_digest) {
description = 'digest {manifest_digest} from repository {namespace}/{repo}';
} else if (metadata.release) {
description = 'release {release}';
if (metadata.channel) {
description += ' via channel {channel}';
}
if (metadata.mediatype) {
description += ' for {mediatype}';
}
description += ' from repository {namespace}/{repo}';
}
if (metadata.token) {