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/views
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-02-19 11:27:43 +0300
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-02-19 11:27:43 +0300
commit8dc800691861a35e322da367e27bedd48a2b71de (patch)
tree2587f1506f688d8b5bea0b76538f954fcb29f8b1 /app/views
parentad12f11f3ed81637b4d72ce9e494fdbd1f26b1bb (diff)
Project limit is reached warning is hidden when the projects_limit is zero
Fixes #12791
Diffstat (limited to 'app/views')
-rw-r--r--app/views/shared/_project_limit.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_project_limit.html.haml b/app/views/shared/_project_limit.html.haml
index 960ff00b49d..f4eb8e491b9 100644
--- a/app/views/shared/_project_limit.html.haml
+++ b/app/views/shared/_project_limit.html.haml
@@ -1,4 +1,4 @@
-- if cookies[:hide_project_limit_message].blank? && !current_user.hide_project_limit && !current_user.can_create_project?
+- if cookies[:hide_project_limit_message].blank? && !current_user.hide_project_limit && !current_user.can_create_project? && current_user.projects_limit > 0
.project-limit-message.alert.alert-warning.hidden-xs
You won't be able to create new projects because you have reached your project limit.