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

29 lines
889 B
Text
Raw Normal View History

2020-05-24 23:13:21 +05:30
- if domain_presenter.errors.any?
2021-01-03 14:25:43 +05:30
.gl-alert.gl-alert-danger
= sprite_icon('error', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
2020-05-24 23:13:21 +05:30
- domain_presenter.errors.full_messages.each do |msg|
2019-09-04 21:01:54 +05:30
= 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.")