This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules/templates
Gusted 796c4eca0b
Prettify number of issues (#17760)
* Prettify number of issues

- Use the PrettyNumber function to add commas in large amount of issues.

* Use client-side formatting

* prettify on both server and client

* remove unused i18n entries

* handle more cases, support other int types in PrettyNumber

* specify locale to avoid issues with node default locale

* remove superfluos argument

* introduce template helper, octicon tweaks, js refactor

* Update modules/templates/helper.go

* Apply some suggestions.

* Add comment

* Update templates/user/dashboard/issues.tmpl

Co-authored-by: silverwind <me@silverwind.io>

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-06-12 20:08:23 +08:00
..
vars Refactor legacy unknwon/com package, improve golangci lint (#19284) 2022-04-01 16:47:50 +08:00
base.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
dynamic.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
helper.go Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
helper_test.go
static.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
templates_bindata.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00