{t( "For each Preseem access point, find and link the matching TowerOps device. This enables subscriber impact data when access points go down." )}
<%= case @filter do %> <% "unmatched" -> %> {t("All access points are matched. Nice!")} <% "matched" -> %> {t("No matched access points yet. Sync from Preseem and link devices.")} <% _ -> %> {t( "No Preseem access points have been synced yet. Enable the integration and run a sync." )} <% end %>
| {t("Access Point")} | {t("IP Address")} | {t("Status")} | {t("Linked Device")} | {t("Actions")} |
|---|---|---|---|---|
|
{ap.name || "Unnamed"}
<%= if Map.has_key?(@suggestions, ap.id) do %>
<.icon name="hero-light-bulb-mini" class="mr-0.5 h-3 w-3" /> Match found
<% end %>
{ap.preseem_id}
{humanize_confidence(ap.match_confidence)}
|
<%= if ap.ip_address do %> {ap.ip_address} <% else %> — <% end %> | {humanize_confidence(ap.match_confidence)} | <%= if ap.device do %> <.link navigate={~p"/devices/#{ap.device.id}"} class="text-indigo-600 hover:text-indigo-800 dark:text-indigo-400 dark:hover:text-indigo-300" onclick="event.stopPropagation()" > {ap.device.name || ap.device.ip_address} <% else %> Not linked <% end %> | <%= if ap.device do %> <% else %> <% end %> |
|
Find a TowerOps device to link to {ap.name} <%!-- Suggestions --%> <%= if suggestions = @suggestions[ap.id] do %><.icon name="hero-light-bulb-mini" class="mr-0.5 inline h-3 w-3" /> {t("Suggested match (same IP):")}
<%= for suggestion <- suggestions do %>
<% end %>
No devices found matching "{@device_search}" <% end %> |
||||