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 { impl From<ContainerSummary> for ContainerInfo {
fn from(value: ContainerSummary) -> Self { fn from(value: ContainerSummary) -> Self {
ContainerInfo { ContainerInfo {
name: value.names.unwrap().join(","), name: value.names.unwrap()[0].trim_start_matches('/').to_string(),
state: value.state.unwrap(), state: value.state.unwrap(),
image: value.image.unwrap(), image: value.image.unwrap(),
} }

View File

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