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
60ff426c
Commit
60ff426c
authored
Nov 08, 2021
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert pipeline schedules page tabs to Pajamas
Changelog: other
parent
3f9e766e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
+10
-16
app/views/projects/pipeline_schedules/_tabs.html.haml
app/views/projects/pipeline_schedules/_tabs.html.haml
+10
-16
No files found.
app/views/projects/pipeline_schedules/_tabs.html.haml
View file @
60ff426c
%ul
.nav-links.mobile-separator.nav.nav-tabs
%li
{
class:
active_when
(
scope
.
nil?
)
}
>
=
link_to
schedule_path_proc
.
call
(
nil
)
do
=
gl_tabs_nav
({
class:
'gl-display-flex gl-flex-grow-1 gl-border-0'
})
do
=
gl_tab_link_to
schedule_path_proc
.
call
(
nil
),
{
item_active:
active_when
(
scope
.
nil?
)
}
do
=
s_
(
"PipelineSchedules|All"
)
%span
.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm.js-totalbuilds-count
=
number_with_delimiter
(
all_schedules
.
count
(
:id
))
=
gl_tab_counter_badge
(
number_with_delimiter
(
all_schedules
.
count
(
:id
)),
{
class:
'js-totalbuilds-count'
})
%li
{
class:
active_when
(
scope
==
'active'
)
}
>
=
link_to
schedule_path_proc
.
call
(
'active'
)
do
=
gl_tab_link_to
schedule_path_proc
.
call
(
'active'
),
{
item_active:
active_when
(
scope
==
'active'
)
}
do
=
s_
(
"PipelineSchedules|Active"
)
%span
.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
=
number_with_delimiter
(
all_schedules
.
active
.
count
(
:id
))
=
gl_tab_counter_badge
(
number_with_delimiter
(
all_schedules
.
active
.
count
(
:id
)))
%li
{
class:
active_when
(
scope
==
'inactive'
)
}
>
=
link_to
schedule_path_proc
.
call
(
'inactive'
)
do
=
gl_tab_link_to
schedule_path_proc
.
call
(
'inactive'
),
{
item_active:
active_when
(
scope
==
'inactive'
)
}
do
=
s_
(
"PipelineSchedules|Inactive"
)
%span
.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
=
number_with_delimiter
(
all_schedules
.
inactive
.
count
(
:id
))
=
gl_tab_counter_badge
(
number_with_delimiter
(
all_schedules
.
inactive
.
count
(
:id
)))
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