summaryrefslogtreecommitdiff
path: root/app/views/projects/pages/show.html.haml
blob: 4347cbdbd9b1689bb06a2cc4a72e0f73634542e5 (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
28
- page_title _('Pages')

- if @project.pages_enabled?
  %h3.page-title.with-button
    = s_('GitLabPages|Pages')

    - if can?(current_user, :update_pages, @project) && (Gitlab.config.pages.external_http || Gitlab.config.pages.external_https)
      = link_to new_project_pages_domain_path(@project), class: 'btn gl-button btn-success float-right', title: s_('GitLabPages|New Domain') do
        = s_('GitLabPages|New Domain')

  %p.light
    = s_('GitLabPages|With GitLab Pages you can host your static websites on GitLab.  Combined with the power of GitLab CI and the help of GitLab Runner you can deploy static pages for your individual projects, your user or your group.')

  = render 'pages_settings'

  %hr.clearfix

  = render 'ssl_limitations_warning' if @project.pages_subdomain.include?(".")
  = render 'access'
  = render 'use'
  - if Gitlab.config.pages.external_http || Gitlab.config.pages.external_https
    = render 'list'
  - else
    = render 'no_domains'
  = render 'destroy'
- else
  .bs-callout.bs-callout-warning
    = html_escape_once(s_('GitLabPages|GitLab Pages are disabled for this project. You can enable them on your project\'s %{strong_start}Settings &gt; General &gt; Visibility%{strong_end} page.')).html_safe % { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe }