// Images — projeto/serviço é melhor esforço (inferido pela tag; imagens
// manuais/de terceiros ficam com "—").
component {
resources {
component(name = SemImagens) {
text(class = muted, content = "Nenhuma imagem.")
}
}
column(class = panel_fill) {
row(class = env_head) {
text(class = muted_fill, content = "@docker_images_count imagem(ns)")
checkbox(
:checked = docker_images_only_used,
on_toggle = field:docker_images_only_used,
label = "Somente em uso",
)
checkbox(
:checked = docker_prune_all_images,
on_toggle = field:docker_prune_all_images,
label = "-a (limpar tudo, não só dangling)",
)
button(
class = btn_danger,
on_click = docker_prune_images,
text = "Limpar sem uso",
)
}
text(
if = @docker_msg,
not_equals = "",
class = muted,
content = "@docker_msg",
)
row(class = thead) {
text(class = "th col_svc", content = "TAGS")
text(class = "th col_proj", content = "PROJETO / SERVIÇO")
text(class = "th col_dur", content = "TAMANHO")
text(class = "th col_dur", content = "CRIADA")
text(class = "th col_state", content = "USO")
text(class = "th col_act", content = "AÇÃO")
}
if @data_loading == "true" {
LoadingRow
}
scrollable(
if = @data_loading,
not_equals = true,
direction = vertical,
class = scroll_fill,
) {
column(class = table_body) {
if @docker_images_only_used == "true" {
each @docker_images as i (fallback = SemImagens) {
column(
class = row_wrap,
if = @i.in_use_label,
equals = "EM USO",
) {
row(class = trow) {
text(class = "td_key col_svc", content = "@i.tags")
text(class = "td col_proj", content = "@i.owner")
text(class = "muted col_dur", content = "@i.size")
text(class = "muted col_dur", content = "@i.created")
StateCell(kind = @i.in_use_kind, label = @i.in_use_label)
row(class = col_act) {
button(
if = @i.in_use_label,
equals = "SEM USO",
class = dk_rm,
on_click = docker_rm_image:@i.id_full,
text = Remover,
)
}
}
hr
}
}
} else {
each @docker_images as i (fallback = SemImagens) {
column(class = row_wrap) {
row(class = trow) {
text(class = "td_key col_svc", content = "@i.tags")
text(class = "td col_proj", content = "@i.owner")
text(class = "muted col_dur", content = "@i.size")
text(class = "muted col_dur", content = "@i.created")
StateCell(kind = @i.in_use_kind, label = @i.in_use_label)
row(class = col_act) {
button(
if = @i.in_use_label,
equals = "SEM USO",
class = dk_rm,
on_click = docker_rm_image:@i.id_full,
text = Remover,
)
}
}
hr
}
}
}
}
}
}
}