2020-05-08 02:09:40 -04:00
|
|
|
- if domain_presenter.errors.any?
|
2019-05-31 08:58:23 -04:00
|
|
|
.alert.alert-danger
|
2020-05-08 02:09:40 -04:00
|
|
|
- domain_presenter.errors.full_messages.each do |msg|
|
2019-05-31 08:58:23 -04:00
|
|
|
= msg
|
2016-02-09 12:06:55 -05:00
|
|
|
|
2019-11-15 13:06:24 -05:00
|
|
|
.form-group.border-section
|
|
|
|
.row
|
2020-05-08 02:09:40 -04:00
|
|
|
- if domain_presenter.persisted?
|
2019-11-15 13:06:24 -05:00
|
|
|
.col-sm-2
|
|
|
|
= _("Domain")
|
2019-05-31 08:58:23 -04:00
|
|
|
.col-sm-10
|
2020-05-08 02:09:40 -04:00
|
|
|
= external_link(domain_presenter.url, domain_presenter.url)
|
2019-11-15 13:06:24 -05:00
|
|
|
- else
|
|
|
|
.col-sm-2
|
|
|
|
= f.label :domain, _("Domain")
|
2019-05-31 08:58:23 -04:00
|
|
|
.col-sm-10
|
2019-11-15 13:06:24 -05:00
|
|
|
.input-group
|
|
|
|
= f.text_field :domain, required: true, autocomplete: "off", class: "form-control"
|
2019-05-31 08:58:23 -04:00
|
|
|
|
2020-05-08 02:09:40 -04:00
|
|
|
- if domain_presenter.persisted?
|
2019-11-15 13:06:24 -05:00
|
|
|
= render 'dns'
|
|
|
|
|
|
|
|
- if Gitlab.config.pages.external_https
|
|
|
|
= render 'certificate', f: f
|
2018-02-25 08:06:09 -05:00
|
|
|
- else
|
2019-11-15 13:06:24 -05:00
|
|
|
.border-section.nothing-here-block
|
2019-01-28 05:08:54 -05:00
|
|
|
= _("Support for custom certificates is disabled. Ask your system's administrator to enable it.")
|