.dialog.darkgrey_box
  .box.box-shadow
    %h2.box-header
      = @project.name
      keys
    .dialog-content
      %table{ style: "text-align: center;", width: "95%" }
        %tr
          %th Size
          %th Algorithm
          %th ID
          - if @project.key_info.expires
            %th Expires
          - if @project.key_info.origin.present?
            %th Origin
        %tr
          %td
            = @project.key_info.keysize
          %td
            = @project.key_info.algorithm
          %td
            = @project.key_info.keyid
          - if @project.key_info.expires
            %td
              = DateTime.strptime(@project.key_info.expires, '%s').strftime('%F')
          - if @project.key_info.origin.present?
            %td= @project.key_info.origin
      %p
        %em Fingerprint
        \:
        %br/
        %pre
          = @project.key_info.fingerprint
      .dialog-buttons
        = remove_dialog_tag('Close')
        = link_to('GPG Key', project_public_key_path(project_name: @project.name), class: 'close-dialog')
        - if @project.key_info.ssl_certificate.present?
          = link_to('SSL Cert.', project_ssl_certificate_path(project_name: @project.name), class: 'close-dialog')
