From 25c37b0e73e4e5ee0168bc6c407d4dcd035299fa Mon Sep 17 00:00:00 2001 From: Stephan van Leeuwen Date: Tue, 30 Dec 2014 18:53:46 +0100 Subject: [PATCH] Fixed issue not being able to create a new issue on an empty project. --- app/views/projects/_issuable_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/_issuable_form.html.haml b/app/views/projects/_issuable_form.html.haml index 19fdab049ea..9e2e214b3e8 100644 --- a/app/views/projects/_issuable_form.html.haml +++ b/app/views/projects/_issuable_form.html.haml @@ -69,7 +69,7 @@ = link_to 'Create new label', new_project_label_path(issuable.project), target: :blank .form-actions - - if contribution_guide_url(issuable.project) && !issuable.persisted? + - if !issuable.project.empty_repo? && contribution_guide_url(issuable.project) && !issuable.persisted? %p Please review the %strong #{link_to 'guidelines for contribution', contribution_guide_url(issuable.project)}