swirl/views/container/detail.jet

72 lines
2.5 KiB
Go
Raw Normal View History

2017-09-26 12:50:09 +00:00
{{ extends "../_layouts/default" }}
{{ import "../_modules/detail" }}
{{ block body() }}
<section class="hero is-info">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title is-2">
CONTAINER
</h1>
<h2 class="subtitle is-5">
A container is a running instance of image.
</h2>
</div>
</div>
</section>
<div class="container">
<nav class="breadcrumb has-succeeds-separator is-small is-marginless" aria-label="breadcrumbs">
<ul>
<li><a href="/">Dashboard</a></li>
2017-10-10 08:26:53 +00:00
<li><a href="/container/">Containers</a></li>
2017-09-26 12:50:09 +00:00
<li class="is-active"><a>Detail</a></li>
</ul>
</nav>
</div>
<section class="hero is-small is-light">
<div class="hero-body">
<div class="container">
<h2 class="title is-2">
{{ .Container.ContainerJSONBase.Name }}
</h2>
</div>
</div>
</section>
<nav class="navbar has-shadow">
<div class="container">
<div class="navbar-brand">
2017-10-10 08:26:53 +00:00
<a class="navbar-item is-tab is-active" href="/container/{{.Container.ContainerJSONBase.ID}}/detail">Detail</a>
<a class="navbar-item is-tab" href="/container/{{.Container.ContainerJSONBase.ID}}/raw">Raw</a>
<a class="navbar-item is-tab" href="/container/{{.Container.ContainerJSONBase.ID}}/logs">Logs</a>
2017-09-26 12:50:09 +00:00
</div>
</div>
</nav>
<section class="section">
<div class="container">
<div class="message is-primary">
<div class="message-body">
<dl class="is-horizontal is-marginless">
<dt class="has-text-left">ID</dt>
<dd>{{ .Container.ContainerJSONBase.ID }}</dd>
{{ yield desc(title="PID", value=.Container.ContainerJSONBase.State.Pid) }}
{{ yield desc(title="Image", value=.Container.ContainerJSONBase.Image) }}
{{ yield desc(title="Created at", value=.Container.ContainerJSONBase.Created) }}
{{ yield desc(title="Started at", value=.Container.ContainerJSONBase.State.StartedAt) }}
<dt class="has-text-left">Status</dt>
<dd><span class="tag is-{{ .Container.ContainerJSONBase.State.Status == "running" ? "success" : "danger" }}">{{ .Container.ContainerJSONBase.State.Status }}</span></dd>
{{ yield desc(title="Error", value=.Container.ContainerJSONBase.State.Error) }}
</dl>
</div>
</div>
2017-10-10 08:26:53 +00:00
{{ yield tags(title="Labels", tags=.Container.Config.Labels) }}
<a href="/container/" class="button is-primary">
<span class="icon"><i class="fa fa-reply"></i></span>
<span>Return</span>
</a>
2017-09-26 12:50:09 +00:00
</div>
</section>
{{ end }}