Sha256: 737bf747e047787ba70986856f4ad0d4e96a6f11ab69aa57c97448c6d56f0d66

Contents?: true

Size: 785 Bytes

Versions: 6

Compression:

Stored size: 785 Bytes

Contents

/ slim-lint:disable LineLength
- flash_to_show = flash.select { |fm| fm[0].to_sym.in?(ApplicationController._flash_types) && fm[1].present? }
/ slim-lint:enable LineLength
- flash_to_show.each do |flash_type, message|
  .alert.alert-dismissible[
    class="mt-2 d-flex align-items-center alert-#{flash_type_to_class(flash_type)}"
    data-turbo-temporary="true"
    aria-live="assertive" aria-atomic="true" role="alert"
  ]
    - case flash_type_to_class(flash_type)
    - when 'danger'
      .bi.bi-exclamation-triangle-fill.me-2
    - when 'warning'
      .bi.bi-exclamation-circle.me-2
    - when 'success'
      .bi.bi-check-lg.me-2
    - when 'info'
      .bi.bi-info-circle.me-2
    = message
    button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.53 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.52 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.51 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.50 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.49 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.48 pg_layout/app/views/pg_layout/_flash.html.slim