fix(ui): use octicon-repo-forked in repo list (#10227)

Closes: #10153

![Screenshot of the fixed icon](/attachments/38559840-9cd0-4e37-9a25-106d21db8a42)

Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10227
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: nachtjasmin <nachtjasmin@posteo.de>
Co-committed-by: nachtjasmin <nachtjasmin@posteo.de>
This commit is contained in:
nachtjasmin
2025-11-26 11:21:20 +01:00
committed by 0ko
co-authored by 0ko
parent 70df33c321
commit b8126d7f38
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@
data-tooltip-content="{{ctx.Locale.TrPluralString .NumForks "fork.n_forks" (ctx.Locale.PrettyNumber .NumForks)}}"
{{end}}
>
{{svg "octicon-git-branch" 16}}
{{svg "octicon-repo-forked" 16}}
{{CountFmt .NumForks}}
</a>
{{end}}
+4
View File
@@ -24,6 +24,10 @@ func testExploreStarForkCounters(t *testing.T, repoQuery, expectedStars, expecte
assert.Equal(t, expectedStars, starsAriaLabel)
assert.Equal(t, expectedForks, forksAriaLabel)
// Verify that correct icons are used
assert.True(t, repoListEntry.Find("a[href$='/stars'] > svg").HasClass("octicon-star"))
assert.True(t, repoListEntry.Find("a[href$='/forks'] > svg").HasClass("octicon-repo-forked"))
}
func TestExploreRepos(t *testing.T) {