remove agent version display
This commit is contained in:
parent
d12ffda8b0
commit
277d3be2bd
2 changed files with 5 additions and 28 deletions
|
|
@ -84,11 +84,6 @@
|
|||
</span>
|
||||
<% end %>
|
||||
</div>
|
||||
<%= if agent.metadata["version"] do %>
|
||||
<div class="text-xs text-gray-500 dark:text-gray-400 mt-0.5">
|
||||
v{agent.metadata["version"]}
|
||||
</div>
|
||||
<% end %>
|
||||
</:col>
|
||||
|
||||
<:col :let={agent} label="Status">
|
||||
|
|
@ -194,11 +189,6 @@
|
|||
Cloud Poller
|
||||
</span>
|
||||
</div>
|
||||
<%= if agent.metadata["version"] do %>
|
||||
<div class="text-xs text-gray-500 dark:text-gray-400 mt-0.5">
|
||||
v{agent.metadata["version"]}
|
||||
</div>
|
||||
<% end %>
|
||||
</:col>
|
||||
|
||||
<:col :let={agent} label="Status">
|
||||
|
|
|
|||
|
|
@ -85,27 +85,22 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Version/Uptime Card -->
|
||||
<!-- Uptime Card -->
|
||||
<div class="bg-white dark:bg-gray-800/50 border border-gray-200 dark:border-white/10 rounded-lg p-6">
|
||||
<div class="flex items-center justify-between">
|
||||
<div>
|
||||
<p class="text-sm font-medium text-gray-600 dark:text-gray-400">Agent Info</p>
|
||||
<%= if @agent_token.metadata["version"] do %>
|
||||
<p class="text-sm font-medium text-gray-600 dark:text-gray-400">Uptime</p>
|
||||
<%= if @agent_token.metadata["uptime_seconds"] do %>
|
||||
<p class="mt-2 text-lg font-semibold text-gray-900 dark:text-white">
|
||||
v{@agent_token.metadata["version"]}
|
||||
{format_uptime(@agent_token.metadata["uptime_seconds"])}
|
||||
</p>
|
||||
<% else %>
|
||||
<p class="mt-2 text-lg font-semibold text-gray-500 dark:text-gray-400">
|
||||
Unknown
|
||||
</p>
|
||||
<% end %>
|
||||
<%= if @agent_token.metadata["uptime_seconds"] do %>
|
||||
<p class="mt-1 text-xs text-gray-500 dark:text-gray-400">
|
||||
Uptime: {format_uptime(@agent_token.metadata["uptime_seconds"])}
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
<.icon name="hero-information-circle" class="h-8 w-8 text-gray-400 dark:text-gray-500" />
|
||||
<.icon name="hero-clock" class="h-8 w-8 text-gray-400 dark:text-gray-500" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -125,14 +120,6 @@
|
|||
</dd>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= if @agent_token.metadata["version"] do %>
|
||||
<div>
|
||||
<dt class="text-sm font-medium text-gray-600 dark:text-gray-400">Version</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 dark:text-white">
|
||||
{@agent_token.metadata["version"]}
|
||||
</dd>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= if @agent_token.metadata["uptime_seconds"] do %>
|
||||
<div>
|
||||
<dt class="text-sm font-medium text-gray-600 dark:text-gray-400">Uptime</dt>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue