improve reputation display and flash messages

This commit is contained in:
2021-05-03 21:24:06 +02:00
parent bb6b5e3362
commit 62cdf32593
6 changed files with 50 additions and 9 deletions

View File

@@ -2,4 +2,19 @@
module ApplicationHelper
include Pagy::Frontend
def bootstrap_class_for_flash(flash_type)
case flash_type
when 'success'
'alert-success'
when 'error'
'alert-danger'
when 'alert'
'alert-warning'
when 'notice'
'alert-primary'
else
'alert-secondary'
end
end
end