summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-04-27 16:56:49 +0900
committerGitHub <noreply@github.com>2023-04-27 15:56:49 +0800
commit62ca5825f73ad5a25ffeb6c3ef66f0eaf5d30cdf (patch)
tree5b5c29d33138a751c50f365739a09c78687bab02
parent92fd3fc4fd369b6a8c0a022a32a80dec2340223a (diff)
downloadgitea-62ca5825f73ad5a25ffeb6c3ef66f0eaf5d30cdf.tar.gz
gitea-62ca5825f73ad5a25ffeb6c3ef66f0eaf5d30cdf.zip
Fix incorrect last online time in runner_edit.tmpl (#24376)
Before: ![image](https://user-images.githubusercontent.com/18380374/234772748-7f4b416f-4056-4a5e-89f0-727d2fa14a41.png) After: ![image](https://user-images.githubusercontent.com/18380374/234772682-8b076054-d0be-4f5f-892d-8d0427275493.png)
-rw-r--r--templates/shared/actions/runner_edit.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shared/actions/runner_edit.tmpl b/templates/shared/actions/runner_edit.tmpl
index d64479e19b..c9edc59b1d 100644
--- a/templates/shared/actions/runner_edit.tmpl
+++ b/templates/shared/actions/runner_edit.tmpl
@@ -13,7 +13,7 @@
</div>
<div class="field gt-dib gt-mr-4 disabled">
<label>{{.locale.Tr "actions.runners.last_online"}}</label>
- <span>{{TimeSinceUnix .Runner.LastOnline $.locale}}</span>
+ <span>{{if .LastOnline}}{{TimeSinceUnix .LastOnline $.locale}}{{else}}{{$.locale.Tr "never"}}{{end}}</span>
</div>
<div class="field gt-dib gt-mr-4 disabled">
<label>{{.locale.Tr "actions.runners.agent_labels"}}</label>