fix(ui): use octicon-repo-forked in repo list (#10227)
Closes: #10153  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:
committed by
0ko
co-authored by
0ko
parent
70df33c321
commit
b8126d7f38
@@ -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}}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user