1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
- if can?(current_user, :update_pages, @project) && @domains.any?
.panel.panel-default
.panel-heading
Domains (#{@domains.count})
%ul.well-list
- @domains.each do |domain|
%li
.pull-right
= link_to 'Details', project_pages_domain_path(@project, domain), class: "btn btn-sm btn-grouped"
%button.btn.btn-remove.btn-sm.btn-grouped{ type: 'button', data: { toggle: 'modal', target: "#modal-delete-domain", domain: domain.domain, domainurl: project_pages_domain_path(@project, domain) } }
Remove
.clearfix
%span= link_to domain.domain, domain.url
%p
- if domain.subject
%span.label.label-gray Certificate: #{domain.subject}
- if domain.expired?
%span.label.label-danger Expired
.modal{ id: "modal-delete-domain", tabindex: -1 }
.modal-dialog
.modal-content
.modal-header
%button.close{ type: 'button', 'aria-label': 'Close', data: {dismiss: 'modal' } }
%span{ "aria-hidden": "true" } ×
%h3.page-title Remove?
.modal-body
Due to an
= link_to 'existing security vulnerability', 'https://about.gitlab.com/2018/02/05/gitlab-pages-custom-domain-validation/', target: '_blank', rel: 'noopener noreferrer'
you will
%strong= 'not'
be able to add any custom domains at this time.
.prepend-top-20
You are about to remove
%code{ id: "domain-name-field"}
and will not be able to re-add the domain until the vulnerability is patched.
.modal-footer
%a.btn.btn-default{ href: '#', data: { dismiss: 'modal' } } Cancel
= link_to 'Delete domain',
'#',
id: 'domain-delete-link',
method: :delete,
class: 'btn btn-remove'
|