Sha256: cb1607647faf7063585db13a4edc71c2a933ebe9ce89dda7b96efc237796ea5f
Contents?: true
Size: 414 Bytes
Versions: 3
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true module AdministrateTailwindTheme module ViewHelper def flash_types(key) case key.to_sym when :notice 'Notice' when :alert 'Alert' when :error 'Error' else key.to_s.humanize end end def icon?(resource) lookup_context.find_all("administrate/navigation/icons/_#{resource}").any? end end end
Version data entries
3 entries across 3 versions & 1 rubygems