<% if notice || alert %> <% if notice %>

<%= notice %>

<% end %> <% if alert %>

<%= alert %>

<% end %> <% end %>