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
This commit is contained in:
Michael Petersen 2016-08-02 15:56:04 -07:00
parent a5100f27d3
commit 4b275d8ffa
2 changed files with 6 additions and 1 deletions

View File

@ -396,6 +396,9 @@
<div><span class="label">License</span> <span class="value">${license}</span></div>
{{/if}}
{{/if}}
{{if cloud_user}}
<div><span class="label">Cloud User</span> <span class="value">${cloud_user}</span></div>
{{/if}}
<div><span class="label">Description:</span> <span class="value">${description}</span></div>
{{if hash }}
<div><span class="label">Hash:</span> <span class="value">${hash}</span></div>

View File

@ -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
maxItems: 3