aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/imports_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/imports_helper.rb')
-rw-r--r--app/helpers/imports_helper.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/helpers/imports_helper.rb b/app/helpers/imports_helper.rb
index 1c4549e50..140660153 100644
--- a/app/helpers/imports_helper.rb
+++ b/app/helpers/imports_helper.rb
@@ -15,6 +15,20 @@ module ImportsHelper
end
end
+ # Compliance check set messages
+ def bootstrap_class_for_message_criticity message_criticity
+ case message_criticity
+ when "error"
+ "alert alert-danger"
+ when "warning"
+ "alert alert-warning"
+ when "info"
+ "alert alert-info"
+ else
+ message_criticity.to_s
+ end
+ end
+
##############################
#      TO CLEAN!!!
##############################