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
fa5fa086
Commit
fa5fa086
authored
Dec 06, 2021
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated Milestone Badges to GlBadge
parent
18fc6343
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
app/views/shared/_milestone_expired.html.haml
app/views/shared/_milestone_expired.html.haml
+3
-3
app/views/shared/milestones/_milestone.html.haml
app/views/shared/milestones/_milestone.html.haml
+2
-4
No files found.
app/views/shared/_milestone_expired.html.haml
View file @
fa5fa086
-
if
milestone
.
expired?
&&
!
milestone
.
closed?
.gl-badge.badge-warning.badge-pill.gl-mb-2
=
_
(
'Expired'
)
=
gl_badge_tag
_
(
'Expired'
),
{
variant: :warning
},
{
class:
"gl-mb-2"
}
-
if
milestone
.
upcoming?
.gl-badge.badge-primary.badge-pill.gl-mb-2
=
_
(
'Upcoming'
)
=
gl_badge_tag
_
(
'Upcoming'
),
{
variant: :info
},
{
class:
"gl-mb-2"
}
-
if
milestone
.
closed?
.gl-badge.badge-danger.badge-pill.gl-mb-2
=
_
(
'Closed'
)
=
gl_badge_tag
_
(
'Closed'
),
{
variant: :danger
},
{
class:
"gl-mb-2"
}
app/views/shared/milestones/_milestone.html.haml
View file @
fa5fa086
...
...
@@ -33,11 +33,9 @@
%div
=
render
(
'shared/milestone_expired'
,
milestone:
milestone
)
-
if
milestone
.
group_milestone?
.gl-badge.badge-info.badge-pill
=
milestone
.
group
.
full_name
=
gl_badge_tag
milestone
.
group
.
full_name
,
variant: :info
-
if
milestone
.
project_milestone?
.gl-badge.badge-muted.badge-pill
=
milestone
.
project
.
full_name
=
gl_badge_tag
milestone
.
project
.
full_name
,
variant: :muted
.col-sm-4.milestone-progress
=
milestone_progress_bar
(
milestone
)
...
...
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