Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-04-08 19:12:57 +0400
committerMarin Jankovski <marin@gitlab.com>2014-04-08 19:12:57 +0400
commite617cf95d448891d51361154d6845218cb5a4508 (patch)
treeca28d9842a2181a96dbca88565fe29fed97e2937 /app
parentfead96788c30c13b5adc25132cd003638a6d4f51 (diff)
Add issue to an empty repo, test.
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/issues/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/issues/_form.html.haml b/app/views/projects/issues/_form.html.haml
index 05cae80e50c..91d0de8e47c 100644
--- a/app/views/projects/issues/_form.html.haml
+++ b/app/views/projects/issues/_form.html.haml
@@ -1,7 +1,7 @@
%div.issue-form-holder
%h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.iid}"
%hr
- - if !@repository.empty? && @repository.contribution_guide && !@issue.persisted?
+ - if @repository.exists? && !@repository.empty? && @repository.contribution_guide && !@issue.persisted?
- contribution_guide_url = project_blob_path(@project, tree_join(@repository.root_ref, @repository.contribution_guide.name))
.alert.alert-info.col-sm-10.col-sm-offset-2
="Please review the <strong>#{link_to "guidelines for contribution", contribution_guide_url}</strong> to this repository.".html_safe