diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5ffc29d3b..ba5a72bf4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -40,6 +40,10 @@ module ApplicationHelper controller_name == 'my_modules' && !@repository.nil? end + def displayable_flash_type?(type) + %w(success warning error notice).include?(type) + end + def flash_alert_class(type) case type when 'success' diff --git a/app/views/shared/_flash_alerts.html.erb b/app/views/shared/_flash_alerts.html.erb index 7b24a17aa..b80af7398 100644 --- a/app/views/shared/_flash_alerts.html.erb +++ b/app/views/shared/_flash_alerts.html.erb @@ -1,5 +1,7 @@