2020-05-24 23:13:21 +05:30
|
|
|
- if domain_presenter.errors.any?
|
2022-07-16 23:28:13 +05:30
|
|
|
= render Pajamas::AlertComponent.new(variant: :danger, dismissible: false) do |c|
|
2023-07-09 08:55:56 +05:30
|
|
|
- c.with_body do
|
2022-07-16 23:28:13 +05:30
|
|
|
- domain_presenter.errors.full_messages.each do |msg|
|
|
|
|
= msg
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2019-12-26 22:10:19 +05:30
|
|
|
.form-group.border-section
|
|
|
|
.row
|
2020-05-24 23:13:21 +05:30
|
|
|
- if domain_presenter.persisted?
|
2019-12-26 22:10:19 +05:30
|
|
|
.col-sm-2
|
|
|
|
= _("Domain")
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-10
|
2020-05-24 23:13:21 +05:30
|
|
|
= external_link(domain_presenter.url, domain_presenter.url)
|
2019-12-26 22:10:19 +05:30
|
|
|
- else
|
|
|
|
.col-sm-2
|
|
|
|
= f.label :domain, _("Domain")
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-10
|
2019-12-26 22:10:19 +05:30
|
|
|
.input-group
|
|
|
|
= f.text_field :domain, required: true, autocomplete: "off", class: "form-control"
|
2019-09-04 21:01:54 +05:30
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
- if domain_presenter.persisted?
|
2019-12-26 22:10:19 +05:30
|
|
|
= render 'dns'
|
|
|
|
|
|
|
|
- if Gitlab.config.pages.external_https
|
|
|
|
= render 'certificate', f: f
|
2018-03-27 19:54:05 +05:30
|
|
|
- else
|
2019-12-26 22:10:19 +05:30
|
|
|
.border-section.nothing-here-block
|
2019-03-02 22:35:43 +05:30
|
|
|
= _("Support for custom certificates is disabled. Ask your system's administrator to enable it.")
|