2018-04-06 08:22:57 +00:00
|
|
|
- verification_enabled = Gitlab::CurrentSettings.pages_domain_verification_enabled?
|
|
|
|
|
2016-02-19 14:11:26 +00:00
|
|
|
- if can?(current_user, :update_pages, @project) && @domains.any?
|
2018-04-10 17:11:34 +00:00
|
|
|
.card
|
|
|
|
.card-header
|
2016-02-10 15:45:59 +00:00
|
|
|
Domains (#{@domains.count})
|
2018-05-29 15:08:35 +00:00
|
|
|
%ul.content-list.pages-domain-list{ class: ("has-verification-status" if verification_enabled) }
|
2016-02-10 15:45:59 +00:00
|
|
|
- @domains.each do |domain|
|
2018-04-06 08:22:57 +00:00
|
|
|
%li.pages-domain-list-item.unstyled
|
|
|
|
- if verification_enabled
|
|
|
|
- tooltip, status = domain.unverified? ? [_('Unverified'), 'failed'] : [_('Verified'), 'success']
|
|
|
|
.domain-status.ci-status-icon.has-tooltip{ class: "ci-status-icon-#{status}", title: tooltip }
|
|
|
|
= sprite_icon("status_#{status}", size: 16 )
|
|
|
|
.domain-name
|
|
|
|
= link_to domain.url do
|
|
|
|
= domain.url
|
|
|
|
= icon('external-link')
|
|
|
|
- if domain.subject
|
|
|
|
%p
|
2018-04-13 19:46:38 +00:00
|
|
|
%span.badge.badge-gray Certificate: #{domain.subject}
|
2018-04-06 08:22:57 +00:00
|
|
|
- if domain.expired?
|
2018-04-13 19:37:07 +00:00
|
|
|
%span.badge.badge-danger Expired
|
2018-04-06 08:22:57 +00:00
|
|
|
%div
|
2017-06-29 17:06:35 +00: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"
|
2018-02-06 13:25:46 +00:00
|
|
|
- if verification_enabled && domain.unverified?
|
|
|
|
%li.warning-row
|
|
|
|
#{domain.domain} is not verified. To learn how to verify ownership, visit your
|
2018-04-06 08:22:57 +00:00
|
|
|
#{link_to 'domain details', project_pages_domain_path(@project, domain)}.
|