Commit ab4a9cac authored by kushalpandya's avatar kushalpandya

Update layout when license is already applied

parent f9575408
- publicish_project_count = ProjectsFinder.new(current_user: current_user).execute.count - publicish_project_count = ProjectsFinder.new(current_user: current_user).execute.count
- state_body_class = current_license&.trial? ? 'col-md-3' : 'col-md-9'
.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
...@@ -6,35 +7,47 @@ ...@@ -6,35 +7,47 @@
Code, test, and deploy together Code, test, and deploy together
.blank-state.clearfix .blank-state.clearfix
- if current_license&.trial?
.col-md-3
.col-md-3.blank-state-icon .col-md-3.blank-state-icon
= custom_icon("add_new_user", size: 50) = custom_icon("add_new_user", size: 50)
.col-md-9.blank-state-body .blank-state-body{ class: state_body_class }
%h3.blank-state-title %h3.blank-state-title
Add user Add user
%p.blank-state-text %p.blank-state-text
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
- if current_license&.trial?
.col-md-3
.blank-state.clearfix .blank-state.clearfix
- if current_license&.trial?
.col-md-3
.col-md-3.blank-state-icon .col-md-3.blank-state-icon
= custom_icon("configure_server", size: 50) = custom_icon("configure_server", size: 50)
.col-md-9.blank-state-body .blank-state-body{ class: state_body_class }
%h3.blank-state-title %h3.blank-state-title
Configure your server Configure your server
%p.blank-state-text %p.blank-state-text
Make adjustments to how your GitLab server is setup. Make adjustments to how your GitLab server is setup.
= link_to new_group_path, class: "btn btn-new" do = link_to admin_root_path, class: "btn btn-new" do
Configure server Configure server
- if current_license&.trial?
.col-md-3
- if current_user.can_create_group? - if current_user.can_create_group?
.blank-state.clearfix .blank-state.clearfix
- if current_license&.trial?
.col-md-3
.col-md-3.blank-state-icon .col-md-3.blank-state-icon
= custom_icon("add_new_group", size: 50) = custom_icon("add_new_group", size: 50)
.col-md-9.blank-state-body .blank-state-body{ class: state_body_class }
%h3.blank-state-title %h3.blank-state-title
Create a group Create a group
%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
\ No newline at end of file - if current_license&.trial?
.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