diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c9731db..ef1defa8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ represented by the pull requests that fixed them. Critical items to know are: ## [master](https://github.com/singularityhub/sregistry/tree/master) (master) + - Adding container descriptions, editable by owners (1.1.40) - add: auto set "verify" attribute of s3 and s3_external obj in minio.py for SSL use (1.1.39) - fix issues with psycopg2-binary and saml auth (1.1.38) - Pin psycopg2-binary 2.8.6 to deal with UTC errors diff --git a/VERSION b/VERSION index 1b507d18..2818446a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.39 +1.1.40 diff --git a/shub/apps/main/models/containers.py b/shub/apps/main/models/containers.py index 6641f0fe..c08de070 100644 --- a/shub/apps/main/models/containers.py +++ b/shub/apps/main/models/containers.py @@ -99,6 +99,10 @@ def get_uri(self, include_version=True): # shub://username/reponame:branch@tag return self.get_short_uri() return self.get_storage() + @property + def description(self): + return self.metadata.get("description") + def get_storage(self): """Return the full storage path, which includes the version string""" if "/" in self.name: diff --git a/shub/apps/main/templates/collections/view_collection.html b/shub/apps/main/templates/collections/view_collection.html index 2da38d2e..b82caf66 100644 --- a/shub/apps/main/templates/collections/view_collection.html +++ b/shub/apps/main/templates/collections/view_collection.html @@ -103,6 +103,7 @@