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 'Plural support for release download count' (#3031) from 0ko/forgejo:download_plu into forgejo

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

+4 -3
+2 -1
options/locale/locale_en-US.ini
··· 2635 2635 release.tag_name_protected = The tag name is protected. 2636 2636 release.tag_already_exist = This tag name already exists. 2637 2637 release.downloads = Downloads 2638 - release.download_count = %s downloads 2638 + release.download_count_one = %s download 2639 + release.download_count_few = %s downloads 2639 2640 release.add_tag_msg = Use the title and content of release as tag message. 2640 2641 release.add_tag = Create Tag Only 2641 2642 release.releases_for = Releases for %s
+1 -1
templates/repo/release/list.tmpl
··· 89 89 <strong>{{svg "octicon-package" 16 "tw-mr-1"}}{{.Name}}</strong> 90 90 </a> 91 91 <div> 92 - <span class="text grey">{{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span> 92 + <span class="text grey">{{ctx.Locale.TrN .DownloadCount "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span> 93 93 </div> 94 94 </li> 95 95 {{end}}
+1 -1
templates/repo/release/new.tmpl
··· 64 64 <div class="flex-text-inline tw-flex-1"> 65 65 <input name="attachment-edit-{{.UUID}}" class="attachment_edit" required value="{{.Name}}"> 66 66 <input name="attachment-del-{{.UUID}}" type="hidden" value="false"> 67 - <span class="ui text grey tw-whitespace-nowrap">{{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span> 67 + <span class="ui text grey tw-whitespace-nowrap">{{ctx.Locale.TrN .DownloadCount "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span> 68 68 </div> 69 69 <a class="ui mini compact red button remove-rel-attach" data-id="{{.ID}}" data-uuid="{{.UUID}}"> 70 70 {{ctx.Locale.Tr "remove"}}