Sha256: be86365d98ec571ac94317b52f11c71ecaf6af2365da6ec3fa52aa8c5b6e5257
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
module ExpressAdmin class FlashMessageComponent < ExpressTemplates::Components::Base helper(:safe_message) {|message| message[1] } helper(:classes) {|message| "flash nav-alert alert-box " } emits -> { div { div(class: ExpressAdmin::FlashMessageComponent.classes('{{flash_message}}'), data: {alert: ''}) { safe_message('{{flash_message}}') a.close(:href => "#") { "×" } } } } for_each -> { flash }, as: :flash_message end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
express_admin-1.2.1 | app/components/express_admin/flash_message_component.rb |