Fix template

This commit is contained in:
Lunny Xiao
2022-11-25 17:48:44 +08:00
committed by Jason Song
parent ef3a74a1ba
commit b84aa84a0f
8 changed files with 78 additions and 78 deletions
+9 -9
View File
@@ -4,17 +4,17 @@
<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}})
{{.locale.Tr "admin.runners.runner_manage_panel"}} ({{.locale.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>
<a class="ui primary tiny button" href="{{AppSubUrl}}/admin/runners/new">{{.locale.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>
<input name="q" value="{{.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}..." autofocus>
<button class="ui primary button">{{.locale.Tr "explore.search"}}</button>
</div>
</form>
</div>
@@ -24,12 +24,12 @@
<tr>
<th data-sortt-asc="oldest" data-sortt-desc="newest">ID</th>
<th data-sortt-asc="alphabetically">
{{.i18n.Tr "admin.runners.name"}}
{{.locale.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>
<th>{{.locale.Tr "admin.runners.own_type"}}</th>
<th>{{.locale.Tr "admin.runners.uuid"}}</th>
<th>{{.locale.Tr "admin.runners.created"}}</th>
<th>{{.locale.Tr "admin.runners.edit"}}</th>
</tr>
</thead>
<tbody>