add runners management ui

This commit is contained in:
Lunny Xiao
2022-06-20 16:31:54 +08:00
committed by Jason Song
parent 2ea693cdd2
commit 931d8c2c21
13 changed files with 779 additions and 123 deletions

View File

@@ -0,0 +1,53 @@
{{template "base/head" .}}
<div class="page-content admin user">
{{template "admin/navbar" .}}
<div class="ui container">
{{template "base/alert" .}}
<h4 class="ui top attached header">
{{.i18n.Tr "admin.runners.runner_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
<div class="ui right">
<a class="ui primary tiny button" href="{{AppSubUrl}}/admin/runners/new">{{.i18n.Tr "admin.runners.new"}}</a>
</div>
</h4>
<div class="ui attached segment">
<form class="ui form ignore-dirty" id="user-list-search-form">
<!-- Search Text -->
<div class="ui fluid action input" style="max-width: 70%;">
<input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..." autofocus>
<button class="ui primary button">{{.i18n.Tr "explore.search"}}</button>
</div>
</form>
</div>
<div class="ui attached table segment">
<table class="ui very basic striped table unstackable">
<thead>
<tr>
<th data-sortt-asc="oldest" data-sortt-desc="newest">ID</th>
<th data-sortt-asc="alphabetically">
{{.i18n.Tr "admin.runners.name"}}
</th>
<th>{{.i18n.Tr "admin.runners.own_type"}}</th>
<th>{{.i18n.Tr "admin.runners.uuid"}}</th>
<th>{{.i18n.Tr "admin.runners.created"}}</th>
<th>{{.i18n.Tr "admin.runners.edit"}}</th>
</tr>
</thead>
<tbody>
{{range .Runners}}
<tr>
<td>{{.ID}}</td>
<td>{{.Name}}</td>
<td>{{.OwnType}}</td>
<td>{{.UUID}}</td>
<td>{{.Created}}</td>
<td><a href="{{$.Link}}/{{.ID}}">{{svg "octicon-pencil"}}</a></td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{template "base/paginate" .}}
</div>
</div>
{{template "base/footer" .}}