summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-11-21 12:28:14 +0800
committerGitHub <noreply@github.com>2023-11-21 04:28:14 +0000
commitc997e9073811fd91f101f3028a39c294c4958c37 (patch)
treeb9aef753fa0481e38302d5d0d8cf7199ad44d3a8 /templates/repo
parentffab076b72fb5822531f24f9e608f3b49bb2d324 (diff)
downloadgitea-c997e9073811fd91f101f3028a39c294c4958c37.tar.gz
gitea-c997e9073811fd91f101f3028a39c294c4958c37.zip
Fix empty action run title (#28113) (#28148)
Backport #28113 by @lunny Fix #27901 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/actions/runs_list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/actions/runs_list.tmpl b/templates/repo/actions/runs_list.tmpl
index b3469a2edc..3b289fb68f 100644
--- a/templates/repo/actions/runs_list.tmpl
+++ b/templates/repo/actions/runs_list.tmpl
@@ -12,7 +12,7 @@
</div>
<div class="flex-item-main">
<a class="flex-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
- {{- .Title -}}
+ {{if .Title}}{{.Title}}{{else}}{{ctx.Locale.Tr "actions.runs.empty_commit_message"}}{{end}}
</a>
<div class="flex-item-body">
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>: