Sha256: e3305e9a0b876c9468f9dc1c676f8e52bed2ed9937b746c16c77f208d4ad255f
Contents?: true
Size: 337 Bytes
Versions: 3
Compression:
Stored size: 337 Bytes
Contents
module Dvl::Flashes::Views class Flashes < Erector::Widget needs :flash def content @flash.select { |k, v| k.to_s.in?(%w(success error info)) && v.present? }.each do |k, v| div(class: "flash flash_#{k}") { a.flash_close '×'.html_safe span text v } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dvl-flashes-0.0.4 | lib/dvl/flashes/views/flashes.rb |
dvl-flashes-0.0.3 | lib/dvl/flashes/views/flashes.rb |
dvl-flashes-0.0.2 | lib/dvl/flashes/views/flashes.rb |