travis-web/assets/scripts/app/templates/ssh_key.hbs
Mathias Meyer 3d6cc0cb1f Fix casing for the settings tabs.
This also slighlty improves the copy on the SSH key settings page.
2014-08-18 10:45:13 +02:00

31 lines
849 B
Handlebars

{{#if model}}
{{#if isEditing}}
{{partial "ssh_key/form"}}
{{else}}
<div class="ssh-key">
<p>SSH key is set.</p>
{{#if description}}
<div class="row">
<span class="label">Description:</label>
<span class="value">{{description}}</span>
</div>
{{/if}}
<div class="row">
<span class="label">Fingerprint:</label>
<span class="value">{{fingerprint}}</span>
</div>
<div class="actions">
<a href="#" {{action "delete"}} {{bind-attr class=":delete-ssh-key isDeleting:deleting"}}>
Delete
</a>
</div>
{{/if}}
{{else}}
<p>
You don't have any custom key set up.
The default key's fingerprint is <code>{{defaultKey.fingerprint}}</code>
</p>
<a {{action "add"}} href="#" class="add-ssh-key">Add a custom SSH key</a>
{{/if}}