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
e48e8b60
Commit
e48e8b60
authored
Mar 14, 2022
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate last push alert to use global_alert partial
Closes
https://gitlab.com/gitlab-org/gitlab/-/issues/354586
parent
468127f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/views/projects/_last_push.html.haml
app/views/projects/_last_push.html.haml
+4
-4
No files found.
app/views/projects/_last_push.html.haml
View file @
e48e8b60
-
event
=
last_push_event
-
if
event
&&
show_last_push_widget?
(
event
)
.gl-alert.gl-alert-success.mt-2
{
role:
'alert'
}
=
sprite_icon
(
'check-circle'
,
size:
16
,
css_class:
'gl-icon gl-alert-icon gl-alert-icon-no-title'
)
%button
.js-close-banner.gl-alert-dismiss
{
type:
'button'
,
'aria-label'
=>
_
(
'Dismiss'
)
}
=
sprite_icon
(
'close'
,
size:
16
,
css_class:
'gl-icon'
)
=
render
'shared/global_alert'
,
variant: :success
,
alert_class:
'gl-mt-3'
,
close_button_class:
'js-close-banner'
do
.gl-alert-body
%span
=
s_
(
"LastPushEvent|You pushed to"
)
%strong
.gl-display-inline-flex.gl-max-w-50p
{
data:
{
toggle:
'tooltip'
},
title:
event
.
ref_name
}
...
...
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