diff options
author | Giteabot <teabot@gitea.io> | 2023-11-21 12:28:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-21 04:28:14 +0000 |
commit | c997e9073811fd91f101f3028a39c294c4958c37 (patch) | |
tree | b9aef753fa0481e38302d5d0d8cf7199ad44d3a8 /templates/repo | |
parent | ffab076b72fb5822531f24f9e608f3b49bb2d324 (diff) | |
download | gitea-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.tmpl | 2 |
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>: |