Sha256: 83e61db991ef9373968196129cc0d4029dddd75253b450d6d9a131617f9db64e

Contents?: true

Size: 369 Bytes

Versions: 8

Compression:

Stored size: 369 Bytes

Contents

<div id="flash" style="display:none">
  <%= flash[:notice] if flash[:notice] %>
  <%= flash[:alert]  if flash[:alert] %>
</div>

<% if request.xhr? && (flash[:notice] || flash[:alert]) %>
  <script>
    $("#flash").slideDown("fast");
    setTimeout(function() { 
      $("#flash").slideUp("fast") 
    }, 10000); //wait 10 seconds and then slide up
  </script>
<% end%>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lolita-3.1.5 app/views/components/lolita/shared/_flash.html.erb
lolita-3.1.4 app/views/components/lolita/shared/_flash.html.erb
lolita-3.1.3 app/views/components/lolita/shared/_flash.html.erb
lolita-3.1.2 app/views/components/lolita/shared/_flash.html.erb
lolita-3.1.1 app/views/components/lolita/shared/_flash.html.erb
lolita-3.1.0 app/views/components/lolita/shared/_flash.html.erb
lolita-3.0.7 app/views/components/lolita/shared/_flash.html.erb
lolita-3.0.6 app/views/components/lolita/shared/_flash.html.erb