mirror of
https://github.com/cuigh/swirl
synced 2025-01-05 18:41:56 +00:00
69 lines
1.9 KiB
Go
69 lines
1.9 KiB
Go
{{ extends "../../_layouts/default" }}
|
|
|
|
{{ block script() }}
|
|
<script>$(() => new Swirl.Stack.Task.ListPage())</script>
|
|
{{ end }}
|
|
|
|
{{ block body() }}
|
|
<section class="hero is-info">
|
|
<div class="hero-body">
|
|
<div class="container has-text-centered">
|
|
<h1 class="title is-2 is-uppercase">{{ i18n("stack.title") }}</h1>
|
|
<h2 class="subtitle is-5">{{ i18n("stack.description") }}</h2>
|
|
</div>
|
|
</div>
|
|
<div class="hero-foot">
|
|
<div class="container">
|
|
<nav class="tabs is-boxed">
|
|
<ul>
|
|
<li class="is-active">
|
|
<a href="/stack/task/">{{ i18n("menu.stack.task") }}</a>
|
|
</li>
|
|
<li>
|
|
<a href="/stack/archive/">{{ i18n("menu.stack.archive") }}</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section class="section">
|
|
<nav class="level">
|
|
<!-- Left side -->
|
|
<div class="level-left">
|
|
<div class="level-item">
|
|
<p class="subtitle is-5">
|
|
<strong>{{len(.Stacks)}}</strong>
|
|
<span class="is-lowercase">{{ i18n("menu.stack") }}</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<table id="table-items" class="table is-bordered is-striped is-narrow is-fullwidth">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ i18n("field.name") }}</th>
|
|
<th>Services</th>
|
|
<th>{{ i18n("field.action") }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Stacks}}
|
|
<tr>
|
|
<td>{{.Name}}</td>
|
|
<td>
|
|
<div class="tags">
|
|
{{range .Services}}
|
|
<a href="/service/{{.}}/detail" class="tag is-success">{{.}}</a>
|
|
{{end}}
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<button class="button is-small is-danger is-outlined" data-action="delete-stack">{{ i18n("button.delete") }}</button>
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
{{ end }} |