Alert Dashboard

Phoenix LiveView
<%= if @ws_ready, do: "connected", else: "connecting..." %>
Total alerts
<%= @count %>
<%= for alert <- @alerts do %> <% end %>
Type Description Created
<%= alert.alert_type %> <%= alert.description %> <%= format_time(alert.inserted_at) %>
<%= if @alerts == [] do %>
No alerts yet.
<% end %>