name cleanup
This commit is contained in:
parent
f8e3a0b6ee
commit
8c2f9948c7
2 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in a new issue