Sha256: 45f7992d278b5346ee3440089571e0d5564804d9022d11699019bc0ed4c514f9

Contents?: true

Size: 618 Bytes

Versions: 24

Compression:

Stored size: 618 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
- toast = flash[:toast].nil? ? true : flash[:toast]
- if toast
  / 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.text-center
        = message

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.45 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.44 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.43 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.42 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.41 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.40 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.39 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.38 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.37 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.36 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.35 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.34 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.33 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.32 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.31 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.30 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.29 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.28 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.27 pg_layout/app/views/pg_layout/_flash.html.slim
pg_rails-7.0.8.pre.alpha.26 pg_layout/app/views/pg_layout/_flash.html.slim