_remove_certificate.html.haml 716 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
- if can?(current_user, :update_pages, @project) && @project.pages_custom_certificate
  .panel.panel-default.panel.panel-danger
    .panel-heading
      Remove certificate
    .errors-holder
    .panel-body
      = form_tag(certificates_namespace_project_pages_path(@project.namespace, @project), method: :delete, class: 'form-horizontal') do
        %p
          Removing the certificate will stop serving the page under HTTPS.
        - if certificate
          %p
            %pre
              = certificate.to_text

        .form-actions
          = button_to 'Remove certificate', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_pages_certificate_message(@project) }