forgejo/modules/base
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
..
base.go API error cleanup (#7186) 2019-06-12 17:07:24 -04:00
natural_sort.go Sort repository tree entries in natural way (#2506) 2017-09-19 11:37:03 +03:00
natural_sort_test.go Add some Unit-Tests (#14500) 2021-01-28 19:08:11 +01:00
tool.go Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
tool_test.go Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00