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