summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderelm <465155+derelm@users.noreply.github.com>2023-06-18 14:04:35 +0200
committerGitHub <noreply@github.com>2023-06-18 12:04:35 +0000
commit05431593ef407fe2d7b552664f7f1d699bb63234 (patch)
tree9a5f302bcca54f8a44e890f8248a2a23884dab1c
parentaa4c9c3215bd8c26936fc6b06d76cd2928018b01 (diff)
downloadgitea-05431593ef407fe2d7b552664f7f1d699bb63234.tar.gz
gitea-05431593ef407fe2d7b552664f7f1d699bb63234.zip
Fix action runner last online state on edit page (#25337)
Backport fix for action runner last online state not showing in `release/v1.20` - fixes #25336
-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 657d565d64..0985bc603d 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">
<label>{{.locale.Tr "actions.runners.last_online"}}</label>
- <span>{{if .LastOnline}}{{TimeSinceUnix .LastOnline $.locale}}{{else}}{{$.locale.Tr "never"}}{{end}}</span>
+ <span>{{if .Runner.LastOnline}}{{TimeSinceUnix .Runner.LastOnline $.locale}}{{else}}{{$.locale.Tr "never"}}{{end}}</span>
</div>
<div class="field gt-dib gt-mr-4">
<label>{{.locale.Tr "actions.runners.agent_labels"}}</label>