diff --git a/app/views/profiles/keys/_key_details.html.haml b/app/views/profiles/keys/_key_details.html.haml index 8016d989ff11f53521964ca8371c7999ef7e54b1..04fa1d9620440d3b7efbb74b1e57f1fa1fd23272 100644 --- a/app/views/profiles/keys/_key_details.html.haml +++ b/app/views/profiles/keys/_key_details.html.haml @@ -1,39 +1,40 @@ - is_admin = defined?(admin) ? true : false .row.gl-mt-3 .col-md-4 - .card - .card-header + = render Pajamas::CardComponent.new(body_options: { class: 'gl-py-0'}) do |c| + - c.header do = _('SSH Key') - %ul.content-list - %li - %span.light= _('Title:') - %strong= @key.title - %li - %span.light= _('Created on:') - %strong= @key.created_at.to_s(:medium) - %li - %span.light= _('Expires:') - %strong= @key.expires_at.try(:to_s, :medium) || _('Never') - %li - %span.light= _('Last used on:') - %strong= @key.last_used_at.try(:to_s, :medium) || _('Never') + - c.body do + %ul.content-list + %li + %span.light= _('Title:') + %strong= @key.title + %li + %span.light= _('Created on:') + %strong= @key.created_at.to_s(:medium) + %li + %span.light= _('Expires:') + %strong= @key.expires_at.try(:to_s, :medium) || _('Never') + %li + %span.light= _('Last used on:') + %strong= @key.last_used_at.try(:to_s, :medium) || _('Never') .col-md-8 = form_errors(@key, type: 'key') unless @key.valid? %pre.well-pre = @key.key - .card - .card-header + = render Pajamas::CardComponent.new(body_options: { class: 'gl-py-0'}) do |c| + - c.header do = _('Fingerprints') - %ul.content-list - %li - %span.light= 'MD5:' - %code.key-fingerprint= @key.fingerprint - - if @key.fingerprint_sha256.present? + - c.body do + %ul.content-list %li - %span.light= 'SHA256:' - %code.key-fingerprint= @key.fingerprint_sha256 - + %span.light= 'MD5:' + %code.key-fingerprint= @key.fingerprint + - if @key.fingerprint_sha256.present? + %li + %span.light= 'SHA256:' + %code.key-fingerprint= @key.fingerprint_sha256 .col-md-12 .float-right