loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'fix: typo on releases for source code downloads' (#5652) from viceice/fix/typo into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5652
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>

Gusted 6f1c1cdb 2626f4ee

+5 -1
+1 -1
templates/repo/release/list.tmpl
··· 84 84 </li> 85 85 <li class="{{if $hasReleaseAttachment}}start-gap{{end}}"> 86 86 <a class="archive-link tw-flex-1 flex-text-inline tw-font-bold" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow"> 87 - {{svg "octicon-file-zip" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP) 87 + {{svg "octicon-file-zip" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (TAR.GZ) 88 88 </a> 89 89 <div class="tw-mr-1"> 90 90 <span class="text grey">{{ctx.Locale.TrN .Release.ArchiveDownloadCount.TarGz "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .Release.ArchiveDownloadCount.TarGz)}}</span>
+4
tests/e2e/release.test.e2e.js
··· 49 49 // Validate release page and click edit 50 50 await expect(page).toHaveURL('/user2/repo2/releases'); 51 51 await expect(page.locator('.download[open] li')).toHaveCount(3); 52 + await expect(page.locator('.download[open] li:nth-of-type(1)')).toContainText('Source code (ZIP)'); 53 + await expect(page.locator('.download[open] li:nth-of-type(1) a')).toHaveAttribute('href', '/user2/repo2/archive/2.0.zip'); 54 + await expect(page.locator('.download[open] li:nth-of-type(2)')).toContainText('Source code (TAR.GZ)'); 55 + await expect(page.locator('.download[open] li:nth-of-type(2) a')).toHaveAttribute('href', '/user2/repo2/archive/2.0.tar.gz'); 52 56 await expect(page.locator('.download[open] li:nth-of-type(3)')).toContainText('Test'); 53 57 await expect(page.locator('.download[open] li:nth-of-type(3) a')).toHaveAttribute('href', 'https://forgejo.org/'); 54 58 save_visual(page);