gitlabhq/app/views/layouts/_flash.html.haml
Dmitriy Zaporozhets c7933d7a78 Bootstrap: team
2012-01-28 11:54:11 +02:00

19 lines
446 B
Plaintext

- 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()",3000);
});
function hideFlash(){
$("#flash_container").slideUp("slow");
}