Commit 85f1e96d authored by kushalpandya's avatar kushalpandya

Remove BS grid classes

parent bdeebb00
- state_offset_class = current_license&.trial? ? 'col-md-offset-3' : 'col-md-offset-1' .blank-state
- state_icon_class = current_license&.trial? ? 'col-md-1' : 'col-md-2' .blank-state-icon
- state_body_class = current_license&.trial? ? 'col-md-5' : 'col-md-8'
.row.blank-state.clearfix
.blank-state-icon{ class: "#{state_icon_class} #{state_offset_class}" }
= custom_icon("add_new_user", size: 50) = custom_icon("add_new_user", size: 50)
.blank-state-body{ class: state_body_class } .blank-state-body
%h3.blank-state-title %h3.blank-state-title
Add user Add user
%p.blank-state-text %p.blank-state-text
...@@ -13,10 +9,10 @@ ...@@ -13,10 +9,10 @@
= link_to new_admin_user_path, class: "btn btn-new" do = link_to new_admin_user_path, class: "btn btn-new" do
New user New user
.row.blank-state.clearfix .blank-state
.blank-state-icon{ class: "#{state_icon_class} #{state_offset_class}" } .blank-state-icon
= custom_icon("configure_server", size: 50) = custom_icon("configure_server", size: 50)
.blank-state-body{ class: state_body_class } .blank-state-body
%h3.blank-state-title %h3.blank-state-title
Configure GitLab Configure GitLab
%p.blank-state-text %p.blank-state-text
...@@ -25,10 +21,10 @@ ...@@ -25,10 +21,10 @@
Configure Configure
- if current_user.can_create_group? - if current_user.can_create_group?
.row.blank-state.clearfix .blank-state
.blank-state-icon{ class: "#{state_icon_class} #{state_offset_class}" } .blank-state-icon
= custom_icon("add_new_group", size: 50) = custom_icon("add_new_group", size: 50)
.blank-state-body{ class: state_body_class } .blank-state-body
%h3.blank-state-title %h3.blank-state-title
Create a group Create a group
%p.blank-state-text %p.blank-state-text
......
.blank-state.ee-trial.clearfix .blank-state
.blank-state-icon .blank-state-icon
= custom_icon("ee_trial", size: 50) = custom_icon("ee_trial", size: 50)
.blank-state-body .blank-state-body
......
- public_project_count = ProjectsFinder.new(current_user: current_user).execute.count - public_project_count = ProjectsFinder.new(current_user: current_user).execute.count
- if current_user.can_create_group? - if current_user.can_create_group?
.blank-state.clearfix .blank-state
.col-md-1.col-md-offset-3.blank-state-icon .blank-state-icon
= custom_icon("add_new_group", size: 50) = custom_icon("add_new_group", size: 50)
.col-md-5.blank-state-body .blank-state-body
%h3.blank-state-title %h3.blank-state-title
Create a group for several dependent projects. Create a group for several dependent projects.
%p.blank-state-text %p.blank-state-text
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
= link_to new_group_path, class: "btn btn-new" do = link_to new_group_path, class: "btn btn-new" do
New group New group
.blank-state.clearfix .blank-state
.col-md-1.col-md-offset-3.blank-state-icon .blank-state-icon
= custom_icon("add_new_project", size: 50) = custom_icon("add_new_project", size: 50)
.col-md-5.blank-state-body .blank-state-body
%h3.blank-state-title %h3.blank-state-title
Create a project Create a project
%p.blank-state-text %p.blank-state-text
...@@ -32,10 +32,10 @@ ...@@ -32,10 +32,10 @@
New project New project
- if public_project_count > 0 - if public_project_count > 0
.blank-state.clearfix .blank-state
.col-md-1.col-md-offset-3.blank-state-icon .blank-state-icon
= custom_icon("globe", size: 50) = custom_icon("globe", size: 50)
.col-md-5.blank-state-body .blank-state-body
%h3.blank-state-title %h3.blank-state-title
Explore public projects Explore public projects
%p.blank-state-text %p.blank-state-text
......
.row.blank-state-parent-container - admin_without_ee_license = !current_license && current_user.admin?
.col-md-6.section-container
.container.section-body.section-welcome{ class: "#{ 'section-admin-welcome' if current_user.admin? }" } .row.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 }" }
.container.section-body
.blank-state.blank-state-welcome .blank-state.blank-state-welcome
%h2.blank-state-welcome-title %h2.blank-state-welcome-title
Welcome to GitLab Welcome to GitLab
...@@ -10,7 +12,7 @@ ...@@ -10,7 +12,7 @@
= render "blank_state_admin_welcome" = render "blank_state_admin_welcome"
- else - else
= render "blank_state_welcome" = render "blank_state_welcome"
- if !current_license && current_user.admin? - if admin_without_ee_license
.col-md-6.section-container .col-md-6.section-container.section-ee-trial
.container.section-body.section-ee-trial .container.section-body
= render "blank_state_ee_trial" = 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