summaryrefslogtreecommitdiff
path: root/app/views/projects/pages_domains/_form.html.haml
blob: e06dab9be06cedd6c8426f11818486b50ed33f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- if @domain.errors.any?
  .alert.alert-danger
    - @domain.errors.full_messages.each do |msg|
      = msg

.form-group.border-section
  .row
    - if @domain.persisted?
      .col-sm-2
        = _("Domain")
      .col-sm-10
        = external_link(@domain.url, @domain.url)
    - else
      .col-sm-2
        = f.label :domain, _("Domain")
      .col-sm-10
        .input-group
          = f.text_field :domain, required: true, autocomplete: "off", class: "form-control"

- if @domain.persisted?
  = render 'dns'

- if Gitlab.config.pages.external_https
  = render 'certificate', f: f
- else
  .border-section.nothing-here-block
    = _("Support for custom certificates is disabled. Ask your system's administrator to enable it.")