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
5e2eedfa
Commit
5e2eedfa
authored
Dec 16, 2021
by
anna_vovchenko
Committed by
Tom Quirk
Jan 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed badges to the Pajamas-compliant component
parent
05caf683
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
app/views/shared/hook_logs/_content.html.haml
app/views/shared/hook_logs/_content.html.haml
+1
-2
app/views/shared/hook_logs/_recent_deliveries_table.html.haml
...views/shared/hook_logs/_recent_deliveries_table.html.haml
+1
-2
app/views/shared/hook_logs/_status_label.html.haml
app/views/shared/hook_logs/_status_label.html.haml
+4
-3
No files found.
app/views/shared/hook_logs/_content.html.haml
View file @
5e2eedfa
...
...
@@ -2,8 +2,7 @@
%h4
POST
=
hook_log
.
url
%span
.badge.gl-badge.badge-pill.badge-muted.sm.gl-ml-3
=
hook_log
.
trigger
.
singularize
.
titleize
=
gl_badge_tag
hook_log
.
trigger
.
singularize
.
titleize
,
{
size: :sm
},
{
class:
'gl-ml-3'
}
%p
=
_
(
'Completed in %{duration_seconds} seconds (%{relative_time})'
).
html_safe
%
{
duration_seconds:
number_with_precision
(
hook_log
.
execution_duration
,
precision:
2
),
relative_time:
time_ago_with_tooltip
(
hook_log
.
created_at
)
}
...
...
app/views/shared/hook_logs/_recent_deliveries_table.html.haml
View file @
5e2eedfa
...
...
@@ -13,8 +13,7 @@
%td
=
render
partial:
'shared/hook_logs/status_label'
,
locals:
{
hook_log:
hook_log
}
%td
.d-none.d-sm-table-cell
%span
.badge.badge-pill.gl-badge.badge-muted.sm
=
hook_log
.
trigger
.
singularize
.
titleize
=
gl_badge_tag
hook_log
.
trigger
.
singularize
.
titleize
,
{
size: :sm
}
%td
#{
number_with_precision
(
hook_log
.
execution_duration
,
precision:
2
)
}
sec
%td
...
...
app/views/shared/hook_logs/_status_label.html.haml
View file @
5e2eedfa
-
label_status
=
hook_log
.
success?
?
'badge-success'
:
'badge-danger'
%span
{
class:
"badge badge-pill gl-badge sm #{label_status}"
}
=
hook_log
.
internal_error?
?
_
(
'Error'
)
:
hook_log
.
response_status
-
badge_variant
=
hook_log
.
success?
?
:success
:
:danger
-
badge_text
=
hook_log
.
internal_error?
?
_
(
'Error'
)
:
hook_log
.
response_status
=
gl_badge_tag
badge_text
,
{
variant:
badge_variant
,
size: :sm
}
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