debian-mirror-gitlab/app/views/help/instance_configuration/_ssh_info.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.1 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- ssh_info = @instance_configuration.settings[:ssh_algorithms_hashes]
2019-12-21 20:55:43 +05:30
- content_for :table_content do
%li
= link_to _('SSH host key fingerprints'), '#ssh-host-keys-fingerprints'
2018-03-17 18:26:18 +05:30
2019-12-21 20:55:43 +05:30
- content_for :settings_content do
%h2#ssh-host-keys-fingerprints
= _('SSH host key fingerprints')
2018-03-17 18:26:18 +05:30
2019-12-21 20:55:43 +05:30
- if ssh_info.blank?
2018-03-17 18:26:18 +05:30
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('SSH host keys are not available on this system. Please use %{ssh_keyscan} command or contact your GitLab administrator for more information.')) % { ssh_keyscan: tag.code('ssh-keyscan') }
2019-12-21 20:55:43 +05:30
- else
%p
= _('Below are the fingerprints for the current instance SSH host keys.')
2018-03-17 18:26:18 +05:30
.table-responsive
%table
%thead
%tr
2019-12-21 20:55:43 +05:30
%th
= _('Algorithm')
%th
= _('MD5')
%th
= _('SHA256')
2018-03-17 18:26:18 +05:30
%tbody
- ssh_info.each do |algorithm|
%tr
%td= algorithm[:name]
%td
%code= instance_configuration_cell_html(algorithm[:md5])
%td
%code= instance_configuration_cell_html(algorithm[:sha256])