forked from forgejo/forgejo
Refactor table width to have more info shown in file list (#6867)
* Refactor table width to have more info shown in file list * Remove unnecesary semicolon * Fix tests for changed html structure
This commit is contained in:
parent
01ebd52a1f
commit
d9d538c8a1
4 changed files with 454 additions and 143 deletions
|
@ -86,7 +86,7 @@ func TestViewRepoWithSymlinks(t *testing.T) {
|
|||
resp := session.MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
files := htmlDoc.doc.Find("#repo-files-table > TBODY > TR > TD.name")
|
||||
files := htmlDoc.doc.Find("#repo-files-table > TBODY > TR > TD.name > SPAN")
|
||||
items := files.Map(func(i int, s *goquery.Selection) string {
|
||||
cls, _ := s.Find("SPAN").Attr("class")
|
||||
file := strings.Trim(s.Find("A").Text(), " \t\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue