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