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
a034d7e2
Commit
a034d7e2
authored
Dec 16, 2021
by
Martin Wortschack
Committed by
Olena Horal-Koretska
Dec 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make badges in builds/_tabs.html.haml partial Pajamas-compliant
parent
20700e72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
app/views/shared/builds/_tabs.html.haml
app/views/shared/builds/_tabs.html.haml
+5
-9
No files found.
app/views/shared/builds/_tabs.html.haml
View file @
a034d7e2
-
count_badge_classes
=
'
badge badge-muted badge-pill gl-badge gl-tab-counter-badge sm
gl-display-none gl-sm-display-inline-flex'
-
count_badge_classes
=
'gl-display-none gl-sm-display-inline-flex'
=
gl_tabs_nav
(
{
class:
'gl-border-b-0 gl-flex-grow-1'
,
data:
{
testid:
'jobs-tabs'
}
}
)
do
=
gl_tab_link_to
build_path_proc
.
call
(
nil
),
{
item_active:
scope
.
nil?
}
do
=
_
(
'All'
)
%span
{
class:
count_badge_classes
}
=
limited_counter_with_delimiter
(
all_builds
)
=
gl_tab_counter_badge
(
limited_counter_with_delimiter
(
all_builds
),
{
class:
count_badge_classes
})
=
gl_tab_link_to
build_path_proc
.
call
(
'pending'
),
{
item_active:
scope
==
'pending'
}
do
=
_
(
'Pending'
)
%span
{
class:
count_badge_classes
}
=
limited_counter_with_delimiter
(
all_builds
.
pending
)
=
gl_tab_counter_badge
(
limited_counter_with_delimiter
(
all_builds
.
pending
),
{
class:
count_badge_classes
})
=
gl_tab_link_to
build_path_proc
.
call
(
'running'
),
{
item_active:
scope
==
'running'
}
do
=
_
(
'Running'
)
%span
{
class:
count_badge_classes
}
=
limited_counter_with_delimiter
(
all_builds
.
running
)
=
gl_tab_counter_badge
(
limited_counter_with_delimiter
(
all_builds
.
running
),
{
class:
count_badge_classes
})
=
gl_tab_link_to
build_path_proc
.
call
(
'finished'
),
{
item_active:
scope
==
'finished'
}
do
=
_
(
'Finished'
)
%span
{
class:
count_badge_classes
}
=
limited_counter_with_delimiter
(
all_builds
.
finished
)
=
gl_tab_counter_badge
(
limited_counter_with_delimiter
(
all_builds
.
finished
),
{
class:
count_badge_classes
})
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