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
942c8b6f
Commit
942c8b6f
authored
Apr 27, 2021
by
Yogi
Committed by
Olena Horal-Koretska
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gl-badge for badges in pipeline page nav
parent
3f706e8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
app/views/projects/pipelines/_with_tabs.html.haml
app/views/projects/pipelines/_with_tabs.html.haml
+3
-3
changelogs/unreleased/gl-badge-pipelines.yml
changelogs/unreleased/gl-badge-pipelines.yml
+5
-0
No files found.
app/views/projects/pipelines/_with_tabs.html.haml
View file @
942c8b6f
...
@@ -11,16 +11,16 @@
...
@@ -11,16 +11,16 @@
%li
.js-builds-tab-link
%li
.js-builds-tab-link
=
link_to
builds_project_pipeline_path
(
@project
,
@pipeline
),
data:
{
target:
'#js-tab-builds'
,
action:
'builds'
,
toggle:
'tab'
},
class:
'builds-tab'
do
=
link_to
builds_project_pipeline_path
(
@project
,
@pipeline
),
data:
{
target:
'#js-tab-builds'
,
action:
'builds'
,
toggle:
'tab'
},
class:
'builds-tab'
do
=
_
(
'Jobs'
)
=
_
(
'Jobs'
)
%span
.badge.badge-pill.js-builds-counter
=
pipeline
.
total_size
%span
.badge.badge-pill.
gl-badge.badge-muted.sm.
js-builds-counter
=
pipeline
.
total_size
-
if
@pipeline
.
failed_builds
.
present?
-
if
@pipeline
.
failed_builds
.
present?
%li
.js-failures-tab-link
%li
.js-failures-tab-link
=
link_to
failures_project_pipeline_path
(
@project
,
@pipeline
),
data:
{
target:
'#js-tab-failures'
,
action:
'failures'
,
toggle:
'tab'
},
class:
'failures-tab'
do
=
link_to
failures_project_pipeline_path
(
@project
,
@pipeline
),
data:
{
target:
'#js-tab-failures'
,
action:
'failures'
,
toggle:
'tab'
},
class:
'failures-tab'
do
=
_
(
'Failed Jobs'
)
=
_
(
'Failed Jobs'
)
%span
.badge.badge-pill.js-failures-counter
=
@pipeline
.
failed_builds
.
count
%span
.badge.badge-pill.
gl-badge.badge-muted.sm.
js-failures-counter
=
@pipeline
.
failed_builds
.
count
%li
.js-tests-tab-link
%li
.js-tests-tab-link
=
link_to
test_report_project_pipeline_path
(
@project
,
@pipeline
),
data:
{
target:
'#js-tab-tests'
,
action:
'test_report'
,
toggle:
'tab'
},
class:
'test-tab'
do
=
link_to
test_report_project_pipeline_path
(
@project
,
@pipeline
),
data:
{
target:
'#js-tab-tests'
,
action:
'test_report'
,
toggle:
'tab'
},
class:
'test-tab'
do
=
s_
(
'TestReports|Tests'
)
=
s_
(
'TestReports|Tests'
)
%span
.badge.badge-pill.js-test-report-badge-counter
=
@pipeline
.
test_report_summary
.
total
[
:count
]
%span
.badge.badge-pill.
gl-badge.badge-muted.sm.
js-test-report-badge-counter
=
@pipeline
.
test_report_summary
.
total
[
:count
]
=
render_if_exists
"projects/pipelines/tabs_holder"
,
pipeline:
@pipeline
,
project:
@project
=
render_if_exists
"projects/pipelines/tabs_holder"
,
pipeline:
@pipeline
,
project:
@project
.tab-content
.tab-content
...
...
changelogs/unreleased/gl-badge-pipelines.yml
0 → 100644
View file @
942c8b6f
---
title
:
Add gl-badge for badges in pipeline page nav
merge_request
:
57970
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