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
89a1adbe
Commit
89a1adbe
authored
Dec 14, 2021
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update badges for ci builds to use helper
- update badges at /jobs to use the bages helper Changelog: changed
parent
b990dc7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+5
-6
No files found.
app/views/projects/ci/builds/_build.html.haml
View file @
89a1adbe
...
...
@@ -50,16 +50,15 @@
.label-container
-
if
job
.
tags
.
any?
-
job
.
tags
.
each
do
|
tag
|
%span
.badge.badge-pill.gl-badge.sm.badge-primary
=
tag
=
gl_badge_tag
tag
,
variant: :info
,
size: :sm
-
if
job
.
try
(
:trigger_request
)
%span
.badge.badge-pill.gl-badge.sm.badge-info
=
_
(
'triggered'
)
=
gl_badge_tag
_
(
'triggered'
),
variant: :info
,
size: :sm
-
if
job
.
try
(
:allow_failure
)
&&
!
job
.
success?
%span
.badge.badge-pill.gl-badge.sm.badge-warning
=
_
(
'allowed to fail'
)
=
gl_badge_tag
_
(
'allowed to fail'
),
variant: :warning
,
size: :sm
-
if
job
.
schedulable?
%span
.badge.badge-pill.gl-badge.sm.badge-info
=
s_
(
'DelayedJobs|delayed'
)
=
gl_badge_tag
s_
(
'DelayedJobs|delayed'
),
variant: :info
,
size: :sm
-
elsif
job
.
action?
%span
.badge.badge-pill.gl-badge.sm.badge-info
=
_
(
'manual'
)
=
gl_badge_tag
_
(
'manual'
),
variant: :info
,
size: :sm
-
if
pipeline_link
%td
...
...
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