2017-08-24 10:34:36 -04:00
- ssh_info = @instance_configuration.settings[:ssh_algorithms_hashes]
2019-10-11 05:06:43 -04:00
- content_for :table_content do
%li
= link_to _('SSH host key fingerprints'), '#ssh-host-keys-fingerprints'
2017-08-24 10:34:36 -04:00
2019-10-11 05:06:43 -04:00
- content_for :settings_content do
%h2#ssh-host-keys-fingerprints
= _('SSH host key fingerprints')
2017-08-24 10:34:36 -04:00
2019-10-11 05:06:43 -04:00
- if ssh_info.blank?
2017-08-24 10:34:36 -04:00
%p
2020-07-31 17:10:12 -04:00
= 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-10-11 05:06:43 -04:00
- else
%p
= _('Below are the fingerprints for the current instance SSH host keys.')
2017-08-24 10:34:36 -04:00
.table-responsive
%table
%thead
%tr
2019-10-11 05:06:43 -04:00
%th
= _('Algorithm')
%th
= _('MD5')
%th
= _('SHA256')
2017-08-24 10:34:36 -04:00
%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])