aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-11-21 11:00:59 +0800
committerGitHub <noreply@github.com>2023-11-21 03:00:59 +0000
commit0c0d17f17eba7c0fd2a0398be4b671ac2247a864 (patch)
tree67ff9c0a6c492c2d8079173f1b815b6cbd9df3d6 /templates
parent247927a9b51cea88db6f7d2dee25471339feb51b (diff)
downloadgitea-0c0d17f17eba7c0fd2a0398be4b671ac2247a864.tar.gz
gitea-0c0d17f17eba7c0fd2a0398be4b671ac2247a864.zip
Fix empty action run title (#28113)
Fix #27901
Diffstat (limited to 'templates')
-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>: