[v14.0/forgejo] fix(ui): add missing space before 'Commit' back (#10526)

**Backport:** https://codeberg.org/forgejo/forgejo/pulls/10521

Regression from 8039240c26

Co-authored-by: Beowulf <beowulf@beocode.eu>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10526
Reviewed-by: Beowulf <beowulf@beocode.eu>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
This commit is contained in:
forgejo-backport-action 2025-12-22 00:28:33 +01:00 committed by Gusted
parent dd75d0957d
commit cd0afc4f90
2 changed files with 27 additions and 1 deletions

View file

@ -16,7 +16,7 @@
</a>
<div class="flex-item-body">
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b> -
{{- if .ScheduleID -}}
{{if .ScheduleID -}}
{{ctx.Locale.Tr "actions.runs.scheduled"}}
{{- else -}}
{{ctx.Locale.Tr "actions.runs.commit"}}

View file

@ -0,0 +1,26 @@
// Copyright 2025 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: GPL-3.0-or-later
package integration
import (
"net/http"
"testing"
"forgejo.org/tests"
"github.com/stretchr/testify/assert"
)
func TestActionRunsList(t *testing.T) {
defer tests.PrepareTestEnv(t)()
req := NewRequest(t, "GET", "/user5/repo4/actions")
resp := MakeRequest(t, req, http.StatusOK)
htmlDoc := NewHTMLParser(t, resp.Body)
runSubLine := htmlDoc.Find(".run-list .flex-item-body").Text()
assert.Contains(t, runSubLine, "Commit")
assert.NotContains(t, runSubLine, "-Commit")
}