Sha256: 3f8ba23cb91d5cc4bdf65faeb51bbf47269c2aa90e00c9ef7585ce2abf054061

Contents?: true

Size: 532 Bytes

Versions: 5

Compression:

Stored size: 532 Bytes

Contents

/ Flash messages que se muestran en el HTML
/ slim-lint:disable LineLength
- flash_to_show = flash.select { |flash_message| flash_message[0].to_sym.in? ApplicationController._flash_types }
/ slim-lint:enable LineLength

/ TODO: data-turbo-temporary, setear al activar toast?
- flash_to_show.each do |flash_type, message|
  .toast(class="bg-#{flash_type_to_class(flash_type)}-subtle" role="alert" data-bs-autohide="true"
         data-xturbo-temporary="true" aria-live="assertive" aria-atomic="true")
    .toast-body
      = message

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.14 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.13 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.12 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.11 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.10 pg_layout/app/views/pg_layout/_flash.html.slim