feat: display cloud poller name on device page

Show the specific cloud poller name (e.g., dfw, lon) alongside "Cloud"
when a device is assigned to a cloud poller. Displays as "Cloud (dfw)"
instead of just "Cloud" for better visibility of which poller is being used.

When no agent is assigned, continues to show just "Cloud".
This commit is contained in:
Graham McIntire 2026-02-08 11:40:58 -06:00
parent 10b1168044
commit b823b5e848
No known key found for this signature in database

View file

@ -69,7 +69,12 @@
</span>
<%= if @agent_info.type == :cloud do %>
<span class="inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400">
<.icon name="hero-cloud" class="h-3.5 w-3.5" /> Cloud
<.icon name="hero-cloud" class="h-3.5 w-3.5" />
<%= if @agent_info.agent_token_id do %>
Cloud ({@agent_info.name})
<% else %>
Cloud
<% end %>
</span>
<% else %>
<span class="inline-flex items-center gap-1 text-xs text-green-600 dark:text-green-400">