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}}