summaryrefslogtreecommitdiff
path: root/app/views/dashboard/projects/_zero_authorized_projects.html.haml
blob: 1bbd4602ecf0a587a02358e615e39d94b9ccf350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
- publicish_project_count = ProjectsFinder.new.execute(current_user).count
.blank-state.blank-state-welcome
  %h2.blank-state-welcome-title
    Welcome to GitLab
  %p.blank-state-text
    Code, test, and deploy together

- if current_user.can_create_group?
  .blank-state
    .blank-state-icon
      = custom_icon("group", size: 50)
    %h3.blank-state-title
      You can create a group for several dependent projects.
    %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