fix: show never when LastOnline is 0

This commit is contained in:
Jason Song 2023-01-05 18:23:50 +08:00
parent 2ac8410bab
commit 49e307b968
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5

View File

@ -78,7 +78,7 @@
<span class="ui label">{{.}}</span>
{{end}}
</td>
<td>{{TimeSinceUnix .LastOnline $.locale}}</td>
<td>{{if .LastOnline}}{{TimeSinceUnix .LastOnline $.locale}}{{else}}{{$.locale.Tr "never"}}{{end}}</td>
<td class="runner-ops">
{{if .Editable $.RunnerOnwerID $.RunnerRepoID}}
<a href="{{$.Link}}/{{.ID}}">{{svg "octicon-pencil"}}</a>