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

31 lines
1.4 KiB
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- page_title _('Pages')
2017-08-17 22:00:37 +05:30
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)
2021-04-17 20:07:23 +05:30
= link_to new_project_pages_domain_path(@project), class: 'btn gl-button btn-confirm float-right', title: s_('GitLabPages|New Domain') do
2019-12-26 22:10:19 +05:30
= s_('GitLabPages|New Domain')
2017-08-17 22:00:37 +05:30
2019-12-26 22:10:19 +05:30
%p.light
2021-04-29 21:17:54 +05:30
- docs_link_start = "<a href='#{help_page_path('user/project/pages/index')}' target='_blank' rel='noopener noreferrer'>".html_safe
- link_end = '</a>'.html_safe
= s_('GitLabPages|With GitLab Pages you can host your static website directly from your GitLab repository. %{docs_link_start}Learn more.%{link_end}').html_safe % { docs_link_start: docs_link_start, link_end: link_end }
2020-03-13 15:44:24 +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-13 15:44:24 +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
2020-10-24 23:57:45 +05:30
= 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 }