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