2019-02-15 15:39:39 +05:30
|
|
|
- mirror = f.object
|
|
|
|
- verified_by = mirror.ssh_known_hosts_verified_by
|
|
|
|
- verified_at = mirror.ssh_known_hosts_verified_at
|
|
|
|
|
|
|
|
.form-group.js-ssh-host-keys-section{ class: ('collapse' unless mirror.ssh_mirror_url?) }
|
2021-01-03 14:25:43 +05:30
|
|
|
%button.btn.gl-button.btn-inverted.btn-secondary.inline.js-detect-host-keys.gl-mr-3{ type: 'button', data: { qa_selector: 'detect_host_keys' } }
|
2020-04-22 19:07:51 +05:30
|
|
|
.js-spinner.d-none.spinner.mr-1
|
2019-02-15 15:39:39 +05:30
|
|
|
= _('Detect host keys')
|
2020-10-24 23:57:45 +05:30
|
|
|
.fingerprint-ssh-info.js-fingerprint-ssh-info.gl-mt-3.gl-mb-3{ class: ('collapse' unless mirror.ssh_mirror_url?) }
|
2019-02-15 15:39:39 +05:30
|
|
|
%label.label-bold
|
|
|
|
= _('Fingerprints')
|
2019-12-21 20:55:43 +05:30
|
|
|
.fingerprints-list.js-fingerprints-list{ data: { qa_selector: 'fingerprints_list' } }
|
2019-02-15 15:39:39 +05:30
|
|
|
- mirror.ssh_known_hosts_fingerprints.each do |fp|
|
|
|
|
%code= fp.fingerprint
|
|
|
|
- if verified_at
|
|
|
|
.form-text.text-muted.js-fingerprint-verification
|
|
|
|
%i.fa.fa-check.fingerprint-verified
|
|
|
|
Verified by
|
|
|
|
- if verified_by
|
|
|
|
= link_to verified_by.name, user_path(verified_by)
|
|
|
|
- else
|
|
|
|
= _('a deleted user')
|
|
|
|
#{time_ago_in_words(verified_at)} ago
|
|
|
|
|
|
|
|
.js-ssh-hosts-advanced.inline
|
2021-01-03 14:25:43 +05:30
|
|
|
%button.btn.gl-button.btn-default.btn-show-advanced.show-advanced{ type: 'button' }
|
2019-02-15 15:39:39 +05:30
|
|
|
%span.label-show
|
|
|
|
= _('Input host keys manually')
|
|
|
|
%span.label-hide
|
|
|
|
= _('Hide host keys manual input')
|
2020-07-28 23:09:34 +05:30
|
|
|
.js-ssh-known-hosts.collapse.gl-mt-3
|
2019-02-15 15:39:39 +05:30
|
|
|
= f.label :ssh_known_hosts, _('SSH host keys'), class: 'label-bold'
|
|
|
|
= f.text_area :ssh_known_hosts, class: 'form-control known-hosts js-known-hosts', rows: '10'
|