Commit 08f3e9cd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets Committed by Dmytro Zaporozhets

Show archive notice on empty project

When repository is empty and project is archived we should still show
archived notice
Signed-off-by: default avatarDmytro Zaporozhets <dzaporozhets@gitlab.com>
parent cedcd442
......@@ -5,6 +5,7 @@
= render partial: 'flash_messages', locals: { project: @project }
= render "home_panel"
= render "archived_notice", project: @project
= 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
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
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