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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
658 B
Text
Raw Normal View History

2023-07-09 08:55:56 +05:30
- can_add_new_domain = can_create_pages_custom_domains?(current_user, @project)
2017-08-17 22:00:37 +05:30
- if can?(current_user, :update_pages, @project)
2022-08-27 11:52:29 +05:30
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5'}, body_options: { class: 'gl-text-center nothing-here-block' }) do |c|
2023-07-09 08:55:56 +05:30
- c.with_header do
2019-12-21 20:55:43 +05:30
= s_('GitLabPages|Domains')
2023-07-09 08:55:56 +05:30
- if can_add_new_domain
= render Pajamas::ButtonComponent.new(variant: :confirm, href: new_project_pages_domain_path(@project)) do
= s_('GitLabPages|New Domain')
- c.with_body do
2021-12-11 22:18:48 +05:30
= s_("GitLabPages|Support for domains and certificates is disabled. Ask your system's administrator to enable it.")