diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-08 15:14:14 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-08 15:14:14 +0100 |
commit | 1489d225d6763b0fdc3f418692e646587e06938a (patch) | |
tree | ebc241ea14adb58c8443c0b4aac28cda43cecb2b /app/views/dashboard/projects/_zero_authorized_projects.html.haml | |
parent | 5d785457db3017a17722314a52433543dd925164 (diff) | |
download | gitlab-ce-1489d225d6763b0fdc3f418692e646587e06938a.tar.gz |
Move partial to right place and fix tests.
Diffstat (limited to 'app/views/dashboard/projects/_zero_authorized_projects.html.haml')
-rw-r--r-- | app/views/dashboard/projects/_zero_authorized_projects.html.haml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app/views/dashboard/projects/_zero_authorized_projects.html.haml b/app/views/dashboard/projects/_zero_authorized_projects.html.haml new file mode 100644 index 00000000000..4e7d6639727 --- /dev/null +++ b/app/views/dashboard/projects/_zero_authorized_projects.html.haml @@ -0,0 +1,53 @@ +- publicish_project_count = Project.publicish(current_user).count +%h3.page-title Welcome to GitLab! +%p.light Self hosted Git management application. +%hr +%div + .dashboard-intro-icon + %i.fa.fa-bookmark-o + .dashboard-intro-text + %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 + If you are added to a project, it will be displayed here. + + - if current_user.can_create_project? + .link_holder + = link_to new_project_path, class: "btn btn-new" do + %i.fa.fa-plus + New Project + +- if current_user.can_create_group? + %hr + %div + .dashboard-intro-icon + %i.fa.fa-users + .dashboard-intro-text + %p.slead + You can create a group for several dependent projects. + %br + Groups are the best way to manage projects and members. + .link_holder + = link_to new_group_path, class: "btn btn-new" do + %i.fa.fa-plus + New Group + +-if publicish_project_count > 0 + %hr + %div + .dashboard-intro-icon + %i.fa.fa-globe + .dashboard-intro-text + %p.slead + There are + %strong= publicish_project_count + public projects on this server. + %br + Public projects are an easy way to allow everyone to have read-only access. + .link_holder + = link_to trending_explore_projects_path, class: "btn btn-new" do + Browse public projects |