1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-26 20:28:40 +00:00

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

View File

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