<%= render "layouts/messages" %> <%= yield %> diff --git a/app/views/shared/_alert.html.erb b/app/views/shared/_alert.html.erb new file mode 100644 index 00000000..97b103d3 --- /dev/null +++ b/app/views/shared/_alert.html.erb @@ -0,0 +1,12 @@ +<% +@alert = false +@alert_level = "low" +%> + +
"> +
+ <%= render_svg "exclamation_triangle" if @alert %> + No air pollution alerts +
+ <%= link_to "Learn more", alerts_path if @alert %> +