Sha256: 8970f4e52c97a04d089709d103aedce090b4231be402f95bd00fc42bc30e6eee
Contents?: true
Size: 306 Bytes
Versions: 1
Compression:
Stored size: 306 Bytes
Contents
class Dvl::Core::Components::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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dvl-core-0.0.4 | lib/dvl/core/components/flashes.rb |