From 1cacb76a7b9ae11c579eb711d79a663e926a580d Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Tue, 26 Feb 2019 16:05:57 +0200 Subject: [PATCH] Add clarifying comment --- app/views/application/_flash_messages.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/application/_flash_messages.html.erb b/app/views/application/_flash_messages.html.erb index 364e3e5ca5..f31f370245 100644 --- a/app/views/application/_flash_messages.html.erb +++ b/app/views/application/_flash_messages.html.erb @@ -1,5 +1,6 @@ <% display = (flash[:notice] || flash[:alert] || flash[:warning]) ? 'block' : 'none' %>
+ <% type = (flash[:notice]) ? 'bg-success' : 'bg-danger' %> <% type = 'bg-warning' if flash[:warning] %>