name cleanup

This commit is contained in:
Hamcha 2023-11-18 23:38:19 +01:00
parent f8e3a0b6ee
commit 8c2f9948c7
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ struct ContainerInfo {
impl From<ContainerSummary> 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(),
}

View file

@ -17,7 +17,7 @@
<tbody>
{% for container in containers %}
<tr>
<td>{{container.name}}</td>
<td><a href="/container/{{container.name}}">{{container.name}}</a></td>
<td class="status {{container.state}}">{{container.state}}</td>
<td>{{container.image}}</td>
</tr>