debian-mirror-gitlab/app/views/dashboard/_zero_authorized_projects.html.haml

54 lines
1.5 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
- publicish_project_count = Project.publicish(current_user).count
2014-09-02 18:07:02 +05:30
%h3.page-title Welcome to GitLab!
%p.light Self hosted Git management application.
%hr
%div
.dashboard-intro-icon
2015-04-26 12:48:37 +05:30
%i.fa.fa-bookmark-o
.dashboard-intro-text
2014-09-02 18:07:02 +05:30
%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
2015-04-26 12:48:37 +05:30
%i.fa.fa-plus
New Project
2014-09-02 18:07:02 +05:30
- if current_user.can_create_group?
%hr
%div
.dashboard-intro-icon
2015-04-26 12:48:37 +05:30
%i.fa.fa-users
.dashboard-intro-text
2014-09-02 18:07:02 +05:30
%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
2015-04-26 12:48:37 +05:30
%i.fa.fa-plus
New Group
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
-if publicish_project_count > 0
2014-09-02 18:07:02 +05:30
%hr
%div
.dashboard-intro-icon
2015-04-26 12:48:37 +05:30
%i.fa.fa-globe
.dashboard-intro-text
2014-09-02 18:07:02 +05:30
%p.slead
There are
2015-04-26 12:48:37 +05:30
%strong= publicish_project_count
2014-09-02 18:07:02 +05:30
public projects on this server.
%br
Public projects are an easy way to allow everyone to have read-only access.
.link_holder
2015-04-26 12:48:37 +05:30
= link_to trending_explore_projects_path, class: "btn btn-new" do
Browse public projects