Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/_flash.html.haml')
-rw-r--r--app/views/layouts/_flash.html.haml18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/layouts/_flash.html.haml b/app/views/layouts/_flash.html.haml
new file mode 100644
index 00000000000..4b6eb2b500e
--- /dev/null
+++ b/app/views/layouts/_flash.html.haml
@@ -0,0 +1,18 @@
+- if alert || notice
+ - text = alert || notice
+ %div{:style => "display:none", :id => "flash_container"}
+ .container
+ %center
+ %h4= text
+ :javascript
+ $(function(){
+ $("#flash_container").slideDown("slow");
+ $("#flash_container").click(function(){
+ $(this).slideUp("slow");
+ });
+ setTimeout("hideFlash()",2000);
+ });
+
+ function hideFlash(){
+ $("#flash_container").slideUp("slow");
+ }