aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-09-08 23:01:19 +0800
committerGitHub <noreply@github.com>2023-09-08 23:01:19 +0800
commit9c0a3532a4765263f279caeabd7f696372ce1d1f (patch)
tree4ed801ef304d923617af7733a6966f166bebc80e /templates
parentffa4949eaaf645995c5a20cd302d0256417b97ed (diff)
downloadgitea-9c0a3532a4765263f279caeabd7f696372ce1d1f.tar.gz
gitea-9c0a3532a4765263f279caeabd7f696372ce1d1f.zip
Add a new column schedule_id for action_run to track (#26975)
Fix #26971 And the UI now will display it's scheduled but not triggered by a push. <img width="954" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/d211845c-457e-4c3e-af1f-a0d654d3f365">
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/actions/runs_list.tmpl14
1 files changed, 9 insertions, 5 deletions
diff --git a/templates/repo/actions/runs_list.tmpl b/templates/repo/actions/runs_list.tmpl
index 37a584079f..961dd52c62 100644
--- a/templates/repo/actions/runs_list.tmpl
+++ b/templates/repo/actions/runs_list.tmpl
@@ -15,11 +15,15 @@
{{- .Title -}}
</a>
<div class="flex-item-body">
- <b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>
- : {{$.locale.Tr "actions.runs.commit"}}
- <a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>
- {{$.locale.Tr "actions.runs.pushed_by"}}
- <a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a>
+ <b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>:
+ {{- if .ScheduleID -}}
+ {{$.locale.Tr "actions.runs.scheduled"}}
+ {{- else -}}
+ {{$.locale.Tr "actions.runs.commit"}}
+ <a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>
+ {{$.locale.Tr "actions.runs.pushed_by"}}
+ <a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a>
+ {{- end -}}
</div>
</div>
<div class="flex-item-trailing">