% if @total_incident_current_marquee.present? && !@total_incident_current_marquee.empty? %> <% @total_incident_current = @total_incident_current_marquee.select{|data| data['sys_created_by'].downcase.to_s != "eurostar_opsramp"}.map{|y|y} @total_incident_current = @total_incident_current.select{|data,count| data['state'] != '7' && data['state'] != '6' && data['state'] != '8'}.map{|y|y} @total_incident_current = @total_incident_current.select{|data,count| data['priority'] == "1" || data['priority'] == "2" }.map{|y|y} %> <% if @total_incident_current.present? && !@total_incident_current.empty? %> <% @total_incident_current.each do |data|%> <%= data['number'] %> - P<%= data['priority'] %> <%= data['short_description'] %> <%= data['sys_created_on'].to_time.strftime("%d-%b at %H:%M") %> <% end %> <% else %> There are currently no P1 and P2 Incidents <%end%> <% else %> There are currently no P1 and P2 Incidents <%end%>
There are currently no P1 and P2 Incidents