Commit 4ebe6960 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Merge branch '40377-blank-states' into 'master'

Fix blank states using old css

Closes #40377

See merge request gitlab-org/gitlab-ce!15521
parents 1b3197f0 0ae8dc9d
...@@ -227,25 +227,27 @@ export default { ...@@ -227,25 +227,27 @@ export default {
/> />
<div <div
class="blank-state blank-state-no-icon" class="blank-state-row"
v-if="!isLoading && state.environments.length === 0"> v-if="!isLoading && state.environments.length === 0">
<h2 class="blank-state-title js-blank-state-title"> <div class="blank-state-center">
You don't have any environments right now. <h2 class="blank-state-title js-blank-state-title">
</h2> You don't have any environments right now.
<p class="blank-state-text"> </h2>
Environments are places where code gets deployed, such as staging or production. <p class="blank-state-text">
<br /> Environments are places where code gets deployed, such as staging or production.
<a :href="helpPagePath"> <br />
Read more about environments <a :href="helpPagePath">
Read more about environments
</a>
</p>
<a
v-if="canCreateEnvironmentParsed"
:href="newEnvironmentPath"
class="btn btn-create js-new-environment-button">
New environment
</a> </a>
</p> </div>
<a
v-if="canCreateEnvironmentParsed"
:href="newEnvironmentPath"
class="btn btn-create js-new-environment-button">
New environment
</a>
</div> </div>
<div <div
......
...@@ -267,9 +267,11 @@ ...@@ -267,9 +267,11 @@
/> />
<div <div
class="blank-state blank-state-no-icon" class="blank-state-row"
v-if="shouldRenderNoPipelinesMessage"> v-if="shouldRenderNoPipelinesMessage">
<h2 class="blank-state-title js-blank-state-title">No pipelines to show.</h2> <div class="blank-state-center">
<h2 class="blank-state-title js-blank-state-title">No pipelines to show.</h2>
</div>
</div> </div>
<div <div
......
...@@ -56,6 +56,12 @@ ...@@ -56,6 +56,12 @@
} }
} }
.blank-state-center {
padding-top: 20px;
padding-bottom: 20px;
text-align: center;
}
.blank-state { .blank-state {
padding: 20px; padding: 20px;
border: 1px solid $border-color; border: 1px solid $border-color;
...@@ -66,7 +72,10 @@ ...@@ -66,7 +72,10 @@
align-items: center; align-items: center;
padding: 50px 30px; padding: 50px 30px;
} }
}
.blank-state,
.blank-state-center {
.blank-state-icon { .blank-state-icon {
svg { svg {
display: block; display: block;
......
...@@ -19,14 +19,15 @@ ...@@ -19,14 +19,15 @@
.environments-container .environments-container
- if @deployments.blank? - if @deployments.blank?
.blank-state.blank-state-no-icon .blank-state-row
%h2.blank-state-title .blank-state-center
You don't have any deployments right now. %h2.blank-state-title
%p.blank-state-text You don't have any deployments right now.
Define environments in the deploy stage(s) in %p.blank-state-text
%code .gitlab-ci.yml Define environments in the deploy stage(s) in
to track deployments here. %code .gitlab-ci.yml
= link_to "Read more", help_page_path("ci/environments"), class: "btn btn-success" to track deployments here.
= link_to "Read more", help_page_path("ci/environments"), class: "btn btn-success"
- else - else
.table-holder .table-holder
.ci-table.environments{ role: 'grid' } .ci-table.environments{ role: 'grid' }
......
---
title: Fix blank states using old css
merge_request:
author:
type: fixed
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