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
3d926912
Commit
3d926912
authored
Apr 20, 2021
by
Yogi
Committed by
Scott Hampton
Apr 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gl-badge for badges in pipeline schedules nav
Add gl-badge classes to existing badges.
parent
9d9b902a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
app/views/projects/pipeline_schedules/_tabs.html.haml
app/views/projects/pipeline_schedules/_tabs.html.haml
+3
-3
changelogs/unreleased/gl-badge-schedules.yml
changelogs/unreleased/gl-badge-schedules.yml
+5
-0
No files found.
app/views/projects/pipeline_schedules/_tabs.html.haml
View file @
3d926912
...
@@ -2,17 +2,17 @@
...
@@ -2,17 +2,17 @@
%li
{
class:
active_when
(
scope
.
nil?
)
}
>
%li
{
class:
active_when
(
scope
.
nil?
)
}
>
=
link_to
schedule_path_proc
.
call
(
nil
)
do
=
link_to
schedule_path_proc
.
call
(
nil
)
do
=
s_
(
"PipelineSchedules|All"
)
=
s_
(
"PipelineSchedules|All"
)
%span
.badge.
badge-pill
.js-totalbuilds-count
%span
.badge.
gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
.js-totalbuilds-count
=
number_with_delimiter
(
all_schedules
.
count
(
:id
))
=
number_with_delimiter
(
all_schedules
.
count
(
:id
))
%li
{
class:
active_when
(
scope
==
'active'
)
}
>
%li
{
class:
active_when
(
scope
==
'active'
)
}
>
=
link_to
schedule_path_proc
.
call
(
'active'
)
do
=
link_to
schedule_path_proc
.
call
(
'active'
)
do
=
s_
(
"PipelineSchedules|Active"
)
=
s_
(
"PipelineSchedules|Active"
)
%span
.badge.
badge-pill
%span
.badge.
gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
=
number_with_delimiter
(
all_schedules
.
active
.
count
(
:id
))
=
number_with_delimiter
(
all_schedules
.
active
.
count
(
:id
))
%li
{
class:
active_when
(
scope
==
'inactive'
)
}
>
%li
{
class:
active_when
(
scope
==
'inactive'
)
}
>
=
link_to
schedule_path_proc
.
call
(
'inactive'
)
do
=
link_to
schedule_path_proc
.
call
(
'inactive'
)
do
=
s_
(
"PipelineSchedules|Inactive"
)
=
s_
(
"PipelineSchedules|Inactive"
)
%span
.badge.
badge-pill
%span
.badge.
gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
=
number_with_delimiter
(
all_schedules
.
inactive
.
count
(
:id
))
=
number_with_delimiter
(
all_schedules
.
inactive
.
count
(
:id
))
changelogs/unreleased/gl-badge-schedules.yml
0 → 100644
View file @
3d926912
---
title
:
Add gl-badge for badges in pipeline schedules nav
merge_request
:
57937
author
:
Yogi (@yo)
type
:
changed
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