Sha256: 71d513ea0f2aba03b2dcbd331ddde9bae7c7406ffcee03bfd5e232dc66995cde
Contents?: true
Size: 369 Bytes
Versions: 14
Compression:
Stored size: 369 Bytes
Contents
module Chaltron::LogsHelper def display_panel(log, &block) klass = "panel panel-#{bootstrap_severity(log.severity)}" content_tag :div, capture(&block), class: klass end def bootstrap_severity(severity) case severity.to_s when 'info' then 'primary' when 'error' then 'danger' when 'debug' then 'info' else 'default' end end end
Version data entries
14 entries across 14 versions & 1 rubygems