2018-03-27 19:54:05 +05:30
|
|
|
- if @domain.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
.alert.alert-danger
|
|
|
|
- @domain.errors.full_messages.each do |msg|
|
|
|
|
%p= msg
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
|
|
|
= f.label :domain, class: 'col-form-label col-sm-2' do
|
2019-03-02 22:35:43 +05:30
|
|
|
= _("Domain")
|
2018-03-27 19:54:05 +05:30
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :domain, required: true, autocomplete: 'off', class: 'form-control', disabled: @domain.persisted?
|
|
|
|
|
|
|
|
- if Gitlab.config.pages.external_https
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
|
|
|
= f.label :certificate, class: 'col-form-label col-sm-2' do
|
2019-03-02 22:35:43 +05:30
|
|
|
= _("Certificate (PEM)")
|
2017-08-17 22:00:37 +05:30
|
|
|
.col-sm-10
|
2018-03-27 19:54:05 +05:30
|
|
|
= f.text_area :certificate, rows: 5, class: 'form-control'
|
2019-03-02 22:35:43 +05:30
|
|
|
%span.help-inline= _("Upload a certificate for your domain with all intermediates")
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
|
|
|
= f.label :key, class: 'col-form-label col-sm-2' do
|
2019-03-02 22:35:43 +05:30
|
|
|
= _("Key (PEM)")
|
2018-03-27 19:54:05 +05:30
|
|
|
.col-sm-10
|
|
|
|
= f.text_area :key, rows: 5, class: 'form-control'
|
2019-03-02 22:35:43 +05:30
|
|
|
%span.help-inline= _("Upload a private key for your certificate")
|
2018-03-27 19:54:05 +05:30
|
|
|
- else
|
|
|
|
.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.")
|