add app metadata fields to usage logs component
This commit is contained in:
parent
4db789b656
commit
d7564fd627
1 changed files with 11 additions and 0 deletions
|
@ -61,6 +61,8 @@ angular.module('quay').directive('logsView', function () {
|
||||||
'push_repo': function(metadata) {
|
'push_repo': function(metadata) {
|
||||||
if (metadata.tag) {
|
if (metadata.tag) {
|
||||||
return 'Push of {tag} to repository {namespace}/{repo}';
|
return 'Push of {tag} to repository {namespace}/{repo}';
|
||||||
|
} else if (metadata.release) {
|
||||||
|
return 'Push of {release} to repository {namespace}/{repo}';
|
||||||
} else {
|
} else {
|
||||||
return 'Repository push to {namespace}/{repo}';
|
return 'Repository push to {namespace}/{repo}';
|
||||||
}
|
}
|
||||||
|
@ -91,6 +93,15 @@ angular.module('quay').directive('logsView', function () {
|
||||||
description = 'tag {tag} from repository {namespace}/{repo}';
|
description = 'tag {tag} from repository {namespace}/{repo}';
|
||||||
} else if (metadata.manifest_digest) {
|
} else if (metadata.manifest_digest) {
|
||||||
description = 'digest {manifest_digest} from repository {namespace}/{repo}';
|
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) {
|
if (metadata.token) {
|
||||||
|
|
Reference in a new issue