summaryrefslogtreecommitdiff
path: root/app/views/projects/_flash_messages.html.haml
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2019-03-12 15:20:52 +0100
committerMartin Wortschack <mwortschack@gitlab.com>2019-03-12 15:21:02 +0100
commitb1318cd18873971041a8fa0ec52cfbdc420a007f (patch)
tree5161478eb8d742454e5abdad36c1d6e295fe44e5 /app/views/projects/_flash_messages.html.haml
parent6fd7149e655113f187160a143af5ebd8a87fab25 (diff)
downloadgitlab-ce-b1318cd18873971041a8fa0ec52cfbdc420a007f.tar.gz
Clean up empty repository state UI
- Remove irrelevante information - Remove horizontal scrolling on smaller viewports - Hide auto devops flash message for empty projects
Diffstat (limited to 'app/views/projects/_flash_messages.html.haml')
-rw-r--r--app/views/projects/_flash_messages.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/_flash_messages.html.haml b/app/views/projects/_flash_messages.html.haml
index 7a5fff96676..b72f0e39b23 100644
--- a/app/views/projects/_flash_messages.html.haml
+++ b/app/views/projects/_flash_messages.html.haml
@@ -5,4 +5,5 @@
- if current_user && can?(current_user, :download_code, project)
= render 'shared/no_ssh'
= render 'shared/no_password'
- = render 'shared/auto_devops_implicitly_enabled_banner', project: project
+ - unless project.empty_repo?
+ = render 'shared/auto_devops_implicitly_enabled_banner', project: project