debian-mirror-gitlab/app/views/projects/pages_domains/_form.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
869 B
Text
Raw Normal View History

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|
= c.body do
- 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.")