From 8c2f9948c72fefbf3186a0d4f495a2bf9751d928 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 18 Nov 2023 23:38:19 +0100 Subject: [PATCH] name cleanup --- src/route/stack.rs | 2 +- templates/stack/get-one.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/route/stack.rs b/src/route/stack.rs index 320c70e..870acab 100644 --- a/src/route/stack.rs +++ b/src/route/stack.rs @@ -30,7 +30,7 @@ struct ContainerInfo { impl From for ContainerInfo { fn from(value: ContainerSummary) -> Self { ContainerInfo { - name: value.names.unwrap().join(","), + name: value.names.unwrap()[0].trim_start_matches('/').to_string(), state: value.state.unwrap(), image: value.image.unwrap(), } diff --git a/templates/stack/get-one.html b/templates/stack/get-one.html index b099859..8a447f3 100644 --- a/templates/stack/get-one.html +++ b/templates/stack/get-one.html @@ -17,7 +17,7 @@ {% for container in containers %} - {{container.name}} + {{container.name}} {{container.state}} {{container.image}}