_zero_authorized_projects.html.haml 1.52 KB
Newer Older
1
- publicish_project_count = Project.publicish(current_user).count
2
%h3.page-title Welcome to GitLab!
Ben Bodenmiller's avatar
Ben Bodenmiller committed
3
%p.light Self hosted Git management application.
4 5 6
%hr
%div
  .dashboard-intro-icon
7
    %i.fa.fa-bookmark-o
8
  .dashboard-intro-text
9 10 11 12 13 14 15
    %p.slead
      You don't have access to any projects right now.
      %br
      - if current_user.can_create_project?
        You can create up to
        %strong= pluralize(current_user.projects_limit, "project") + "."
      - else
Ben Bodenmiller's avatar
Ben Bodenmiller committed
16
        If you are added to a project, it will be displayed here.
17 18 19 20

    - if current_user.can_create_project?
      .link_holder
        = link_to new_project_path, class: "btn btn-new" do
21 22
          %i.fa.fa-plus
          New Project
23 24 25 26 27

- if current_user.can_create_group?
  %hr
  %div
    .dashboard-intro-icon
28
      %i.fa.fa-users
29
    .dashboard-intro-text
30 31 32
      %p.slead
        You can create a group for several dependent projects.
        %br
Ben Bodenmiller's avatar
Ben Bodenmiller committed
33
        Groups are the best way to manage projects and members.
34 35
      .link_holder
        = link_to new_group_path, class: "btn btn-new" do
36 37
          %i.fa.fa-plus
          New Group
38

39
-if publicish_project_count > 0
40 41 42
  %hr
  %div
    .dashboard-intro-icon
43
      %i.fa.fa-globe
44
    .dashboard-intro-text
45 46
      %p.slead
        There are
47
        %strong= publicish_project_count
48 49 50 51
        public projects on this server.
        %br
        Public projects are an easy way to allow everyone to have read-only access.
      .link_holder
52
        = link_to trending_explore_projects_path, class: "btn btn-new" do
53
          Browse public projects