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 {
|
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(),
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in a new issue