Sha256: c12adad06589335e18bb7f0d9cecfd480d27446845ca3e81e6eb703596b0fbae

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

- content_for :inline_javascript do
  - flash.each do |type, message|
    - next if message.blank?
    - if type == "notice" || type == "success" || type == "info"
      :javascript
        $(document).ready(function() {
          $.notify('#{escape_javascript(message)}', 'success')
        });
    - else
      :javascript
        $(document).ready(function() {
          $.notify('#{escape_javascript(message)}', 'error')
        });

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statixite-1.0.2 app/views/layouts/statixite/_flash.html.haml
statixite-1.0.1 app/views/layouts/statixite/_flash.html.haml
statixite-1.0.0 app/views/layouts/statixite/_flash.html.haml