Implement updated UI for displaying the signing status of a tag, now that we support multiple delegations

The icon now represents the status of the multiple delegations, and we show each delegation in the "Expanded" view.
This commit is contained in:
Joseph Schorr 2017-05-16 17:07:09 -04:00
parent 7c6196f78a
commit b7f88d2df2
9 changed files with 368 additions and 99 deletions

View file

@ -27,9 +27,4 @@ class RepositorySignatures(RepositoryParamResource):
if repo is None or not repo.trust_enabled:
raise NotFound()
tag_data, expiration = tuf_metadata_api.get_default_tags_with_expiration(namespace, repository)
return {
'tags': tag_data,
'expiration': expiration
}
return {'delegations': tuf_metadata_api.get_all_tags_with_expiration(namespace, repository)}