32 lines
857 B
Handlebars
32 lines
857 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:</span>
|
|
<span class="value">{{description}}</span>
|
|
</div>
|
|
{{/if}}
|
|
<div class="row">
|
|
<span class="label">Fingerprint:</span>
|
|
<span class="value">{{fingerprint}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="actions">
|
|
<a href="#" {{action "delete"}} class="delete-ssh-key {{if isDeleting 'deleting'}}">
|
|
Delete
|
|
</a>
|
|
</div>
|
|
{{/if}}
|
|
{{else}}
|
|
<p>
|
|
You don't have any custom key set up.<br/>
|
|
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}}
|