gitlab-org--gitlab-foss/app/views/dashboard/projects/_blank_state_welcome.html.haml

58 lines
2.0 KiB
Plaintext
Raw Normal View History

- public_project_count = ProjectsFinder.new(current_user: current_user).execute.count
2017-07-05 18:53:27 +00:00
2017-11-03 19:32:00 +00:00
.row
.col-md-6
2017-07-05 18:53:27 +00:00
- if current_user.can_create_project?
2017-11-03 19:32:00 +00:00
= link_to new_project_path, class: "blank-state-link" do
.blank-state
.blank-state-icon
= custom_icon("add_new_project", size: 50)
.blank-state-body
%h3.blank-state-title
Create a project
%p.blank-state-text
You don't have access to any projects right now.
You can create up to
%strong= number_with_delimiter(current_user.projects_limit)
= succeed "." do
= "project".pluralize(current_user.projects_limit)
- else
.blank-state
.blank-state-icon
= custom_icon("add_new_project", size: 50)
.blank-state-body
%h3.blank-state-title
Create a project
%p.blank-state-text
If you are added to a project, it will be displayed here.
- if current_user.can_create_group?
.col-md-6
= link_to new_group_path, class: "blank-state-link" do
.blank-state
.blank-state-icon
= custom_icon("add_new_group", size: 50)
.blank-state-body
%h3.blank-state-title
Create a group for several dependent projects.
%p.blank-state-text
Groups are the best way to manage projects and members.
.clearfix
2017-07-05 18:53:27 +00:00
2017-11-03 19:32:00 +00:00
- if public_project_count > 0
.col-md-6
= link_to trending_explore_projects_path, class: "blank-state-link" do
.blank-state
.blank-state-icon
= custom_icon("globe", size: 50)
.blank-state-body
%h3.blank-state-title
Explore public projects
%p.blank-state-text
There are
= number_with_delimiter(public_project_count)
public projects on this server.
Public projects are an easy way to allow
everyone to have read-only access.