<% content_for :title, "My Devices — Crimata" %>

My Devices

<%= @customer&.email %>

<% if @customer.nil? %>
Setting up your device…

This usually takes a minute. Refresh to check progress.

<% else %>
<%= @customer.slug || "Your device" %>
<% if @customer.slug.present? %> 🌎 <%= @customer.slug %>.crimata.com <% end %>
<% badge_class = @customer.status == "active" ? "active" : "provisioning" %> <% badge_label = { "active" => "Active", "provisioning" => "Provisioning", "failed" => "Failed" }.fetch(@customer.status, "Pending") %> <%= badge_label %>
<% if @customer.slug.present? %> Open → <% else %> Not ready yet <% end %>
<% end %>