debian-mirror-gitlab/app/views/projects/pages/show.html.haml

29 lines
1.3 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- page_title 'Pages'
2019-12-26 22:10:19 +05:30
- if @project.pages_enabled?
%h3.page-title.with-button
= s_('GitLabPages|Pages')
2017-08-17 22:00:37 +05:30
2019-12-26 22:10:19 +05:30
- 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 btn-success float-right', title: s_('GitLabPages|New Domain') do
= s_('GitLabPages|New Domain')
2017-08-17 22:00:37 +05:30
2019-12-26 22:10:19 +05:30
%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.')
2020-03-09 13:42:32 +05:30
= render 'pages_settings'
2018-05-09 12:01:36 +05:30
2019-12-26 22:10:19 +05:30
%hr.clearfix
2017-08-17 22:00:37 +05:30
2020-03-09 13:42:32 +05:30
= render 'ssl_limitations_warning' if @project.pages_subdomain.include?(".")
2019-12-26 22:10:19 +05:30
= render 'access'
= render 'use'
- if Gitlab.config.pages.external_http || Gitlab.config.pages.external_https
= render 'list'
- else
= render 'no_domains'
= render 'destroy'
2017-08-17 22:00:37 +05:30
- else
2019-12-26 22:10:19 +05:30
.bs-callout.bs-callout-warning
= s_('GitLabPages|GitLab Pages are disabled for this project. You can enable them on your project\'s %{strong_start}Settings > General > Visibility%{strong_end} page.').html_safe % { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe }