2016-02-19 09:11:26 -05:00
|
|
|
- if can?(current_user, :update_pages, @project) && @domains.any?
|
2016-02-10 10:45:59 -05:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Domains (#{@domains.count})
|
|
|
|
%ul.well-list
|
2018-02-06 08:25:46 -05:00
|
|
|
- verification_enabled = Gitlab::CurrentSettings.pages_domain_verification_enabled?
|
2016-02-10 10:45:59 -05:00
|
|
|
- @domains.each do |domain|
|
|
|
|
%li
|
|
|
|
.pull-right
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to 'Details', project_pages_domain_path(@project, domain), class: "btn btn-sm btn-grouped"
|
|
|
|
= link_to 'Remove', project_pages_domain_path(@project, domain), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove btn-sm btn-grouped"
|
2016-02-10 10:45:59 -05:00
|
|
|
.clearfix
|
2018-02-06 08:25:46 -05:00
|
|
|
- if verification_enabled
|
|
|
|
- tooltip, status = domain.unverified? ? ['Unverified', 'failed'] : ['Verified', 'success']
|
|
|
|
= link_to domain.url, title: tooltip, class: 'has-tooltip' do
|
|
|
|
= sprite_icon("status_#{status}", size: 16, css_class: "has-tooltip ci-status-icon ci-status-icon-#{status}")
|
|
|
|
= domain.domain
|
|
|
|
- else
|
|
|
|
= link_to domain.domain, domain.url
|
2016-02-10 10:45:59 -05:00
|
|
|
%p
|
|
|
|
- if domain.subject
|
|
|
|
%span.label.label-gray Certificate: #{domain.subject}
|
|
|
|
- if domain.expired?
|
|
|
|
%span.label.label-danger Expired
|
2018-02-06 08:25:46 -05:00
|
|
|
- if verification_enabled && domain.unverified?
|
|
|
|
%li.warning-row
|
|
|
|
#{domain.domain} is not verified. To learn how to verify ownership, visit your
|
|
|
|
= link_to 'domain details', project_pages_domain_path(@project, domain)
|