Commit 68662cc7 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Show ee trial column

parent 3ae7c28a
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-around; justify-content: space-around;
height: 100%;
} }
.blank-state-welcome { .blank-state-welcome {
...@@ -34,16 +35,17 @@ ...@@ -34,16 +35,17 @@
display: block; display: block;
color: $gl-text-color; color: $gl-text-color;
flex: 0 0 100%; flex: 0 0 100%;
margin-bottom: 15px;
@media (min-width: $screen-sm-min) { @media (min-width: $screen-sm-min) {
flex: 0 0 48%; flex: 0 0 49%;
&:nth-child(odd) { &:nth-child(odd) {
margin-right: 10px; margin-right: 5px;
} }
&:nth-child(even) { &:nth-child(even) {
margin-left: 10px; margin-left: 5px;
} }
} }
...@@ -56,12 +58,12 @@ ...@@ -56,12 +58,12 @@
.blank-state { .blank-state {
padding: 20px; padding: 20px;
margin-bottom: 30px;
border: 1px solid $border-color; border: 1px solid $border-color;
border-radius: $border-radius-default; border-radius: $border-radius-default;
@media (min-width: $screen-sm-min) { @media (min-width: $screen-sm-min) {
display: flex; display: flex;
height: 100%;
align-items: center; align-items: center;
padding: 50px 30px; padding: 50px 30px;
} }
...@@ -91,21 +93,30 @@ ...@@ -91,21 +93,30 @@
} }
/* EE-specific Styles */ /* EE-specific Styles */
@media (min-width: $screen-md-min) {
.blank-state-parent-container.has-start-trial-container { @media (min-width: $screen-lg-min) {
display: flex; .column-large {
flex: 2;
} }
}
.section-ee-trial { .column-small {
.section-body { flex: 1;
display: flex; margin-bottom: 15px;
align-items: center;
justify-content: center;
.blank-state { .blank-state {
padding: 20px; max-width: 400px;
text-align: center; flex-wrap: wrap;
margin-left: 15px;
}
.blank-state-icon {
margin-bottom: 30px;
} }
} }
} }
@media (max-width: $screen-xs-max) {
.blank-state-icon svg {
width: 315px;
}
}
- admin_without_ee_license = !current_license && current_user.admin? - admin_without_ee_license = !current_license && current_user.admin?
.row.blank-state-parent-container{ class: ('has-start-trial-container' if admin_without_ee_license) } .blank-state-parent-container{ class: ('has-start-trial-container' if admin_without_ee_license) }
.section-container.section-welcome{ class: ('col-md-6' if admin_without_ee_license) } .section-container.section-welcome{ class: ('col-md-6' if admin_without_ee_license) }
.container.section-body .container.section-body
.blank-state-welcome .row
%h2.blank-state-welcome-title .blank-state-welcome
Welcome to GitLab %h2.blank-state-welcome-title
%p.blank-state-text Welcome to GitLab
Code, test, and deploy together %p.blank-state-text
- if current_user.admin? Code, test, and deploy together
= render "blank_state_admin_welcome" .blank-state-row
- else %div{ class: ('column-large' if admin_without_ee_license) }
= render "blank_state_welcome" - if current_user.admin?
- if admin_without_ee_license = render "blank_state_admin_welcome"
.col-md-6.section-container.section-ee-trial - else
.container.section-body = render "blank_state_welcome"
= render "blank_state_ee_trial" - if admin_without_ee_license
.column-small
= render "blank_state_ee_trial"
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