Commit 3b00b038 authored by kushalpandya's avatar kushalpandya

Move welcome pages to individual partials

parent d5a1fd50
- publicish_project_count = ProjectsFinder.new(current_user: current_user).execute.count .row.blank-state-parent-container
.blank-state.blank-state-welcome .col-md-6.section-container
%h2.blank-state-welcome-title .section-body.section-welcome
Welcome to GitLab .blank-state.blank-state-welcome
%p.blank-state-text %h2.blank-state-welcome-title
Code, test, and deploy together Welcome to GitLab
%p.blank-state-text
- if current_user.can_create_group? Code, test, and deploy together
.blank-state - if current_user.admin?
.blank-state-icon = render "blank_state_admin_welcome"
= custom_icon("group", size: 50) - else
%h3.blank-state-title = render "blank_state_welcome"
You can create a group for several dependent projects. \ No newline at end of file
%p.blank-state-text
Groups are the best way to manage projects and members.
= link_to new_group_path, class: "btn btn-new" do
New group
.blank-state
.blank-state-icon
= custom_icon("project", size: 50)
%h3.blank-state-title
You don't have access to any projects right now
%p.blank-state-text
- if current_user.can_create_project?
You can create up to
%strong= number_with_delimiter(current_user.projects_limit)
= succeed "." do
= "project".pluralize(current_user.projects_limit)
- else
If you are added to a project, it will be displayed here.
- if current_user.can_create_project?
= link_to new_project_path, class: "btn btn-new" do
New project
- if publicish_project_count > 0
.blank-state
.blank-state-icon
= icon("globe")
%h3.blank-state-title
There are
= number_with_delimiter(publicish_project_count)
public projects on this server.
%p.blank-state-text
Public projects are an easy way to allow everyone to have read-only access.
= link_to trending_explore_projects_path, class: "btn btn-new" do
Browse projects
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