Commit 9fd27f5c authored by kushalpandya's avatar kushalpandya

Use BS grid column offsets

parent dce0fa85
-# variable = trial license present ? use this ELSE use this - state_offset_class = current_license&.trial? ? 'col-md-offset-4' : 'col-md-offset-1'
- state_edge_class = current_license&.trial? ? 'col-md-4' : 'col-md-1'
- state_icon_class = current_license&.trial? ? 'col-md-1' : 'col-md-2' - state_icon_class = current_license&.trial? ? 'col-md-1' : 'col-md-2'
- state_body_class = current_license&.trial? ? 'col-md-3' : 'col-md-8' - state_body_class = current_license&.trial? ? 'col-md-3' : 'col-md-8'
.blank-state.clearfix .blank-state.clearfix
%div{ class: state_edge_class } .blank-state-icon{ class: "#{state_icon_class} #{state_offset_class}" }
.blank-state-icon{ class: state_icon_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{ class: state_body_class }
%h3.blank-state-title %h3.blank-state-title
...@@ -14,11 +12,9 @@ ...@@ -14,11 +12,9 @@
Add your team members and others to GitLab. Add your team members and others to GitLab.
= 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
%div{ class: state_edge_class }
.blank-state.clearfix .blank-state.clearfix
%div{ class: state_edge_class } .blank-state-icon{ class: "#{state_icon_class} #{state_offset_class}" }
.blank-state-icon{ class: state_icon_class }
= custom_icon("configure_server", size: 50) = custom_icon("configure_server", size: 50)
.blank-state-body{ class: state_body_class } .blank-state-body{ class: state_body_class }
%h3.blank-state-title %h3.blank-state-title
...@@ -27,12 +23,10 @@ ...@@ -27,12 +23,10 @@
Make adjustments to how your GitLab server is setup. Make adjustments to how your GitLab server is setup.
= link_to admin_root_path, class: "btn btn-new" do = link_to admin_root_path, class: "btn btn-new" do
Configure server Configure server
%div{ class: state_edge_class }
- if current_user.can_create_group? - if current_user.can_create_group?
.blank-state.clearfix .blank-state.clearfix
%div{ class: state_edge_class } .blank-state-icon{ class: "#{state_icon_class} #{state_offset_class}" }
.blank-state-icon{ class: state_icon_class }
= custom_icon("add_new_group", size: 50) = custom_icon("add_new_group", size: 50)
.blank-state-body{ class: state_body_class } .blank-state-body{ class: state_body_class }
%h3.blank-state-title %h3.blank-state-title
...@@ -40,5 +34,4 @@ ...@@ -40,5 +34,4 @@
%p.blank-state-text %p.blank-state-text
Groups are a great way to organise projects and people. Groups are a great way to organise projects and people.
= link_to new_group_path, class: "btn btn-new" do = link_to new_group_path, class: "btn btn-new" do
New group New group
%div{ class: state_edge_class } \ No newline at end of file
\ No newline at end of file
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
- if current_user.can_create_group? - if current_user.can_create_group?
.blank-state.clearfix .blank-state.clearfix
.col-md-3 .col-md-1.col-md-offset-3.blank-state-icon
.col-md-1.blank-state-icon
= custom_icon("add_new_group", size: 50) = custom_icon("add_new_group", size: 50)
.col-md-5.blank-state-body .col-md-5.blank-state-body
%h3.blank-state-title %h3.blank-state-title
...@@ -12,11 +11,9 @@ ...@@ -12,11 +11,9 @@
Groups are the best way to manage projects and members. Groups are the best way to manage projects and members.
= link_to new_group_path, class: "btn btn-new" do = link_to new_group_path, class: "btn btn-new" do
New group New group
.col-md-3
.blank-state.clearfix .blank-state.clearfix
.col-md-3 .col-md-1.col-md-offset-3.blank-state-icon
.col-md-1.blank-state-icon
= custom_icon("add_new_project", size: 50) = custom_icon("add_new_project", size: 50)
.col-md-5.blank-state-body .col-md-5.blank-state-body
%h3.blank-state-title %h3.blank-state-title
...@@ -33,12 +30,10 @@ ...@@ -33,12 +30,10 @@
- if current_user.can_create_project? - if current_user.can_create_project?
= link_to new_project_path, class: "btn btn-new" do = link_to new_project_path, class: "btn btn-new" do
New project New project
.col-md-3
- if publicish_project_count > 0 - if publicish_project_count > 0
.blank-state.clearfix .blank-state.clearfix
.col-md-3 .col-md-1.col-md-offset-3.blank-state-icon
.col-md-1.blank-state-icon
= custom_icon("globe", size: 50) = custom_icon("globe", size: 50)
.col-md-5.blank-state-body .col-md-5.blank-state-body
%h3.blank-state-title %h3.blank-state-title
...@@ -50,5 +45,4 @@ ...@@ -50,5 +45,4 @@
Public projects are an easy way to allow Public projects are an easy way to allow
everyone to have read-only access. everyone to have read-only access.
= link_to trending_explore_projects_path, class: "btn btn-new" do = link_to trending_explore_projects_path, class: "btn btn-new" do
Browse projects Browse projects
.col-md-3 \ No newline at end of file
\ No newline at end of file
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