Replace more icons with SVG, repo search tweaks (#13860)
* Replace more icons with SVG - Replace remaining icons on admin page with SVG - Fix vertical menu background on arc-green - Minor improvments to frontpage repo search - More icon replacements here and there * fix integration * whitespace tweak * add comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
6edfa6bc88
commit
c85bb62635
30 changed files with 166 additions and 108 deletions
|
@ -172,14 +172,14 @@ func TestLDAPUserSync(t *testing.T) {
|
|||
assert.Equal(t, u.UserName, strings.TrimSpace(tds.Find("td:nth-child(2) a").Text()))
|
||||
assert.Equal(t, u.Email, strings.TrimSpace(tds.Find("td:nth-child(3) span").Text()))
|
||||
if u.IsAdmin {
|
||||
assert.True(t, tds.Find("td:nth-child(5) i").HasClass("fa-check-square-o"))
|
||||
assert.True(t, tds.Find("td:nth-child(5) svg").HasClass("octicon-check"))
|
||||
} else {
|
||||
assert.True(t, tds.Find("td:nth-child(5) i").HasClass("fa-square-o"))
|
||||
assert.True(t, tds.Find("td:nth-child(5) svg").HasClass("octicon-x"))
|
||||
}
|
||||
if u.IsRestricted {
|
||||
assert.True(t, tds.Find("td:nth-child(6) i").HasClass("fa-check-square-o"))
|
||||
assert.True(t, tds.Find("td:nth-child(6) svg").HasClass("octicon-check"))
|
||||
} else {
|
||||
assert.True(t, tds.Find("td:nth-child(6) i").HasClass("fa-square-o"))
|
||||
assert.True(t, tds.Find("td:nth-child(6) svg").HasClass("octicon-x"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue