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
55dede68
Commit
55dede68
authored
Jan 13, 2020
by
Rajendra Kadam
Committed by
Kushal Pandya
Jan 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add icons to alerts
parent
7465e2d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
app/views/layouts/_flash.html.haml
app/views/layouts/_flash.html.haml
+2
-0
changelogs/unreleased/icons-to-alerts.yml
changelogs/unreleased/icons-to-alerts.yml
+5
-0
No files found.
app/views/layouts/_flash.html.haml
View file @
55dede68
-# We currently only support `alert`, `notice`, `success`, 'toast'
-
icons
=
{
'alert'
=>
'error'
,
'notice'
=>
'information-o'
,
'success'
=>
'check-circle'
};
.flash-container.flash-container-page.sticky
-
flash
.
each
do
|
key
,
value
|
-
if
key
==
'toast'
&&
value
.js-toast-message
{
data:
{
message:
value
}
}
-
elsif
value
%div
{
class:
"flash-#{key} mb-2"
}
=
sprite_icon
(
icons
[
key
],
size:
16
,
css_class:
'align-middle mr-1'
)
unless
icons
[
key
].
nil?
%span
=
value
%div
{
class:
"close-icon-wrapper js-close-icon"
}
=
sprite_icon
(
'close'
,
size:
16
,
css_class:
'close-icon'
)
changelogs/unreleased/icons-to-alerts.yml
0 → 100644
View file @
55dede68
---
title
:
Fix aligment for icons on alerts
merge_request
:
22760
author
:
Rajendra Kadam
type
:
added
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