mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
10 lines
228 B
Ruby
10 lines
228 B
Ruby
module ApplicationHelper
|
|
def classes_for_flash(flash_type)
|
|
case flash_type.to_sym
|
|
when :error
|
|
'bg-red-100 text-red-700 border-red-300'
|
|
else
|
|
'bg-blue-100 text-blue-700 border-blue-300'
|
|
end
|
|
end
|
|
end
|