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
d1ea7222
Commit
d1ea7222
authored
Mar 11, 2022
by
wortschi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate alert to shared partial in notifications
Changelog: changed
parent
d372b7c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
app/views/profiles/notifications/show.html.haml
app/views/profiles/notifications/show.html.haml
+6
-10
No files found.
app/views/profiles/notifications/show.html.haml
View file @
d1ea7222
...
...
@@ -3,16 +3,12 @@
%div
-
if
@user
.
errors
.
any?
.gl-alert.gl-alert-danger.gl-my-5
.gl-alert-container
%button
.js-close.btn.gl-dismiss-btn.btn-default.btn-sm.gl-button.btn-default-tertiary.btn-icon
{
type:
'button'
,
'aria-label'
=>
_
(
'Dismiss'
)
}
=
sprite_icon
(
'close'
,
css_class:
'gl-icon'
)
=
sprite_icon
(
'error'
,
css_class:
'gl-icon gl-alert-icon gl-alert-icon-no-title'
)
.gl-alert-content
.gl-alert-body
%ul
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
=
render
'shared/global_alert'
,
variant: :danger
do
.gl-alert-body
%ul
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
=
hidden_field_tag
:notification_type
,
'global'
.row.gl-mt-3
...
...
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