feat: LocaleString for status

This commit is contained in:
Jason Song
2023-01-06 15:02:03 +08:00
parent a6f8f10670
commit 91dfef0425
4 changed files with 21 additions and 3 deletions

View File

@@ -70,7 +70,7 @@
{{range .Tasks}}
<tr>
<td><a href="{{.GetBuildViewLink}}" target="_blank">{{template "shared/actions/runner_id" .ID}}</a></td>
<td><span class="ui label task-status-{{.Status.String}}">{{.Status.String}}</span></td>
<td><span class="ui label task-status-{{.Status.String}}">{{.Status.LocaleString $.locale}}</span></td>
<td>{{.GetRepoName}}</td>
<td><strong>
<a href="{{.GetCommitLink}}" target="_blank">{{.GetCommitSHAShort}}</a>