Commit 9c46b6e9 authored by Arturo Herrero's avatar Arturo Herrero

Merge branch 'dz-show-archive-notice' into 'master'

Show archive notice on empty project

See merge request gitlab-org/gitlab!59286
parents b645968b 08f3e9cd
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
= render partial: 'flash_messages', locals: { project: @project } = render partial: 'flash_messages', locals: { project: @project }
= render "home_panel" = render "home_panel"
= render "archived_notice", project: @project
= render "invite_members" if experiment_enabled?(:invite_members_empty_project_version_a) && can_import_members? = render "invite_members" if experiment_enabled?(:invite_members_empty_project_version_a) && can_import_members?
......
---
title: Show archive notice on empty project
merge_request: 59286
author:
type: changed
...@@ -36,6 +36,16 @@ RSpec.describe 'projects/empty' do ...@@ -36,6 +36,16 @@ RSpec.describe 'projects/empty' do
end end
end end
context 'project is archived' do
let(:project) { ProjectPresenter.new(create(:project, :empty_repo, :archived), current_user: user) }
it 'shows archived notice' do
render
expect(rendered).to have_content('Archived project!')
end
end
describe 'invite_members_empty_project_version_a experiment' do describe 'invite_members_empty_project_version_a experiment' do
let(:can_import_members) { true } let(:can_import_members) { true }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment