From 4b275d8ffa3e4496ba6a221b1797b83329ed2a5c Mon Sep 17 00:00:00 2001 From: Michael Petersen Date: Tue, 2 Aug 2016 15:56:04 -0700 Subject: [PATCH] Adds Default Logins to Templates Added a new section cloud-user with type string to the schema Added a new section to the index to display the cloud-user if declared Change-Id: I5ddd2c50cba901c0a8da79bd54ebaf6518bc02d4 --- openstack_catalog/templates/index.html | 3 +++ openstack_catalog/web/static/assets.schema.yaml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/openstack_catalog/templates/index.html b/openstack_catalog/templates/index.html index 253a122..690df35 100644 --- a/openstack_catalog/templates/index.html +++ b/openstack_catalog/templates/index.html @@ -396,6 +396,9 @@
License ${license}
{{/if}} {{/if}} + {{if cloud_user}} +
Cloud User ${cloud_user}
+ {{/if}}
Description: ${description}
{{if hash }}
Hash: ${hash}
diff --git a/openstack_catalog/web/static/assets.schema.yaml b/openstack_catalog/web/static/assets.schema.yaml index d4d1cc0..afd5327 100644 --- a/openstack_catalog/web/static/assets.schema.yaml +++ b/openstack_catalog/web/static/assets.schema.yaml @@ -118,6 +118,8 @@ license_url: type: string pattern: "^((https?://)[a-z][a-z0-9_-]+(\\.[a-z][a-z0-9_-]+)+(/[a-z0-9\\._/~%\\-\\+&\\#\\?!=\\(\\)@]*)?)$" + cloud_user: + type: string attributes: type: object additionalProperties: true @@ -266,4 +268,4 @@ items: type: number minItems: 3 - maxItems: 3 \ No newline at end of file + maxItems: 3