blob: e0b8850357e73766aef88411a3653b7bf5dbc1f5 (
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
48
49
|
- link_classes = "blank-state blank-state-link gl-text-body gl-display-flex gl-align-items-center gl-border-1 gl-border-solid gl-border-gray-100 gl-rounded-base gl-mb-5"
.gl-display-flex.gl-flex-wrap.gl-justify-content-space-between
- if current_user.can_create_project?
= link_to new_project_path, class: link_classes do
.blank-state-icon
= custom_icon("add_new_project", size: 50)
.blank-state-body.gl-sm-pl-0.gl-pl-6
%h3.gl-font-size-h2.gl-mt-0
= _('Create a project')
%p
= _('Projects are where you store your code, access issues, wiki and other features of GitLab.')
- else
.blank-state.gl-display-flex.gl-align-items-center.gl-border-1.gl-border-solid.gl-border-gray-100.gl-rounded-base.gl-mb-5
.blank-state-icon
= custom_icon("add_new_project", size: 50)
.blank-state-body.gl-sm-pl-0.gl-pl-6
%h3.gl-font-size-h2.gl-mt-0
= _('Create a project')
%p
= _('If you are added to a project, it will be displayed here.')
- if current_user.can_create_group?
= link_to new_group_path, class: link_classes do
.blank-state-icon
= custom_icon("add_new_group", size: 50)
.blank-state-body.gl-sm-pl-0.gl-pl-6
%h3.gl-font-size-h2.gl-mt-0
= _('Create a group')
%p
= _('Groups are the best way to manage projects and members.')
= link_to trending_explore_projects_path, class: link_classes do
.blank-state-icon
= custom_icon("globe", size: 50)
.blank-state-body.gl-sm-pl-0.gl-pl-6
%h3.gl-font-size-h2.gl-mt-0
= _('Explore public projects')
%p
= _('Public projects are an easy way to allow everyone to have read-only access.')
= link_to "https://docs.gitlab.com/", class: link_classes do
.blank-state-icon
= custom_icon("lightbulb", size: 50)
.blank-state-body.gl-sm-pl-0.gl-pl-6
%h3.gl-font-size-h2.gl-mt-0
= _('Learn more about GitLab')
%p
= _('Take a look at the documentation to discover all of GitLab’s capabilities.')
|