Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
160bfbf59d3f
Commit
c8d66594
authored
Jun 27, 2016
by
winniehell
Browse files
Align flash messages with left side of page content (!4959)
parent
842b1752791f
Changes
3
Show whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
160bfbf5
...
@@ -4,6 +4,7 @@ v 8.10.0 (unreleased)
...
@@ -4,6 +4,7 @@ v 8.10.0 (unreleased)
- Fix commit builds API, return all builds for all pipelines for given commit. !4849
- Fix commit builds API, return all builds for all pipelines for given commit. !4849
- Replace Haml with Hamlit to make view rendering faster. !3666
- Replace Haml with Hamlit to make view rendering faster. !3666
- Wrap code blocks on Activies and Todos page. !4783 (winniehell)
- Wrap code blocks on Activies and Todos page. !4783 (winniehell)
- Align flash messages with left side of page content !4959 (winniehell)
- Display last commit of deleted branch in push events !4699 (winniehell)
- Display last commit of deleted branch in push events !4699 (winniehell)
- Add Sidekiq queue duration to transaction metrics.
- Add Sidekiq queue duration to transaction metrics.
- Let Workhorse serve format-patch diffs
- Let Workhorse serve format-patch diffs
...
...
app/assets/javascripts/flash.js.coffee
View file @
160bfbf5
...
@@ -4,11 +4,19 @@ class @Flash
...
@@ -4,11 +4,19 @@ class @Flash
@
flash
.
html
(
""
)
@
flash
.
html
(
""
)
innerDiv
=
$
(
'<div/>'
,
innerDiv
=
$
(
'<div/>'
,
class
:
"flash-
#{
type
}
"
,
class
:
"flash-
#{
type
}
"
text
:
message
)
)
innerDiv
.
appendTo
(
".flash-container"
)
innerDiv
.
appendTo
(
".flash-container"
)
textDiv
=
$
(
"<div/>"
,
class
:
"flash-text"
,
text
:
message
)
textDiv
.
appendTo
(
innerDiv
)
if
@
flash
.
parent
().
hasClass
(
'content-wrapper'
)
textDiv
.
addClass
(
'container-fluid container-limited'
)
@
flash
.
click
->
$
(
@
).
fadeOut
()
@
flash
.
click
->
$
(
@
).
fadeOut
()
@
flash
.
show
()
@
flash
.
show
()
...
...
app/assets/stylesheets/framework/flash.scss
View file @
160bfbf5
...
@@ -16,4 +16,11 @@
...
@@ -16,4 +16,11 @@
@extend
.alert-danger
;
@extend
.alert-danger
;
margin
:
0
;
margin
:
0
;
}
}
.flash-notice
,
.flash-alert
{
.container-fluid.flash-text
{
background
:
transparent
;
}
}
}
}
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