Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_pages_settings.html.haml « pages « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 483f192109babbb06d8004c7a2b789b4ede8d989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
= form_for @project, url: project_pages_path(@project), html: { class: 'inline', title: pages_https_only_title } do |f|
  = render_if_exists 'shared/pages/max_pages_size_input', form: f

  - if Gitlab.config.pages.external_http || Gitlab.config.pages.external_https

    .form-group
      .form-check
        = f.check_box :pages_https_only, class: 'form-check-input', disabled: pages_https_only_disabled?
        = f.label :pages_https_only, class: pages_https_only_label_class do
          %strong
            = s_('GitLabPages|Force HTTPS (requires valid certificates)')
        - docs_link_start = "<a href='#{help_page_path('user/project/pages/custom_domains_ssl_tls_certification/index', anchor: 'force-https-for-gitlab-pages-websites')}' target='_blank' rel='noopener noreferrer'>".html_safe
        - link_end = '</a>'.html_safe
        %p
          = s_("GitLabPages|When enabled, all attempts to visit your website through HTTP are automatically redirected to HTTPS using a response with status code 301. Requires a valid certificate for all domains. %{docs_link_start}Learn more.%{link_end}").html_safe % { docs_link_start: docs_link_start, link_end: link_end }

    .gl-mt-3
      = f.submit s_('GitLabPages|Save'), class: 'btn btn-confirm gl-button'