Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
aac00cca
Commit
aac00cca
authored
Feb 03, 2021
by
Yogi
Committed by
Kushal Pandya
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add empty state placeholder for milestones
parent
f99c0556
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
25 deletions
+34
-25
app/views/dashboard/milestones/index.html.haml
app/views/dashboard/milestones/index.html.haml
+6
-7
app/views/groups/milestones/index.html.haml
app/views/groups/milestones/index.html.haml
+7
-8
app/views/projects/milestones/index.html.haml
app/views/projects/milestones/index.html.haml
+9
-10
app/views/shared/empty_states/_milestones.html.haml
app/views/shared/empty_states/_milestones.html.haml
+7
-0
changelogs/unreleased/yo-empty-milestone.yml
changelogs/unreleased/yo-empty-milestone.yml
+5
-0
No files found.
app/views/dashboard/milestones/index.html.haml
View file @
aac00cca
...
@@ -17,12 +17,11 @@
...
@@ -17,12 +17,11 @@
.nav-controls
.nav-controls
=
render
'shared/milestones/search_form'
=
render
'shared/milestones/search_form'
.milestones
-
if
@milestones
.
blank?
%ul
.content-list
=
render
'shared/empty_states/milestones'
-
if
@milestones
.
blank?
-
else
%li
.milestones
.nothing-here-block
No milestones to show
%ul
.content-list
-
else
-
@milestones
.
each
do
|
milestone
|
-
@milestones
.
each
do
|
milestone
|
=
render
'milestone'
,
milestone:
milestone
=
render
'milestone'
,
milestone:
milestone
=
paginate
@milestones
,
theme:
'gitlab'
=
paginate
@milestones
,
theme:
'gitlab'
app/views/groups/milestones/index.html.haml
View file @
aac00cca
...
@@ -8,17 +8,16 @@
...
@@ -8,17 +8,16 @@
=
render
'shared/milestones/search_form'
=
render
'shared/milestones/search_form'
=
render
'shared/milestones_sort_dropdown'
=
render
'shared/milestones_sort_dropdown'
-
if
can?
(
current_user
,
:admin_milestone
,
@group
)
-
if
can?
(
current_user
,
:admin_milestone
,
@group
)
=
link_to
"New milestone"
,
new_group_milestone_path
(
@group
),
class:
"btn gl-button btn-success"
,
data:
{
qa_selector:
"new_group_milestone_link"
}
=
link_to
_
(
'New milestone'
)
,
new_group_milestone_path
(
@group
),
class:
"btn gl-button btn-success"
,
data:
{
qa_selector:
"new_group_milestone_link"
}
.milestones
-
if
@milestones
.
blank?
%ul
.content-list
=
render
'shared/empty_states/milestones'
-
if
@milestones
.
blank?
-
else
%li
.milestones
.nothing-here-block
No milestones to show
%ul
.content-list
-
else
-
@milestones
.
each
do
|
milestone
|
-
@milestones
.
each
do
|
milestone
|
-
if
milestone
.
project_milestone?
-
if
milestone
.
project_milestone?
=
render
'projects/milestones/milestone'
,
milestone:
milestone
=
render
'projects/milestones/milestone'
,
milestone:
milestone
-
else
-
else
=
render
'milestone'
,
milestone:
milestone
=
render
'milestone'
,
milestone:
milestone
=
paginate
@milestones
,
theme:
"gitlab"
=
paginate
@milestones
,
theme:
"gitlab"
app/views/projects/milestones/index.html.haml
View file @
aac00cca
...
@@ -11,15 +11,14 @@
...
@@ -11,15 +11,14 @@
=
link_to
new_project_milestone_path
(
@project
),
class:
'gl-button btn btn-success'
,
data:
{
qa_selector:
"new_project_milestone_link"
},
title:
_
(
'New milestone'
)
do
=
link_to
new_project_milestone_path
(
@project
),
class:
'gl-button btn btn-success'
,
data:
{
qa_selector:
"new_project_milestone_link"
},
title:
_
(
'New milestone'
)
do
=
_
(
'New milestone'
)
=
_
(
'New milestone'
)
.milestones
-
if
@milestones
.
blank?
#js-delete-milestone-modal
=
render
'shared/empty_states/milestones'
#promote-milestone-modal
-
else
.milestones
#js-delete-milestone-modal
#promote-milestone-modal
%ul
.content-list
%ul
.content-list
=
render
@milestones
=
render
@milestones
-
if
@milestones
.
blank?
=
paginate
@milestones
,
theme:
'gitlab'
%li
.nothing-here-block
=
_
(
'No milestones to show'
)
=
paginate
@milestones
,
theme:
'gitlab'
app/views/shared/empty_states/_milestones.html.haml
0 → 100644
View file @
aac00cca
.row.empty-state
.col-12
.svg-content
=
image_tag
'illustrations/milestone_burndown_chart.svg'
.col-12
.text-content
%h4
.text-center
=
_
(
'No milestones to show'
)
changelogs/unreleased/yo-empty-milestone.yml
0 → 100644
View file @
aac00cca
---
title
:
Add empty state placeholder for milestones
merge_request
:
51887
author
:
Yogi (@yo)
type
:
other
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment