You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates
wxiaoguang 19de52e0f4
Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861)
Follow #21429 & #22861

Use `<gitea-locale-number>` instead of backend `PrettyNumber`. All old
`PrettyNumber` related functions are removed. A lot of code could be
simplified.

And some functions haven't been used for long time (dead code), so they
are also removed by the way (eg: `SplitStringAtRuneN`, `Dedent`)

This PR only tries to improve the `PrettyNumber` rendering problem, it
doesn't touch the "plural" problem.

Screenshot:


![image](https://user-images.githubusercontent.com/2114189/229290804-1f63db65-1e34-4a54-84ba-e00b44331b17.png)


![image](https://user-images.githubusercontent.com/2114189/229290911-c88dea00-b11d-48dd-accb-9f52edd73ce4.png)
2 years ago
..
admin Convert .Source.SkipVerify to $cfg.SkipVerify (#23839) 2 years ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2 years ago
base Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
code Use data-tooltip-content for tippy tooltip (#23649) 2 years ago
custom Add footer extra links template (#9576) 5 years ago
devtest Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
explore Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (#23766) 2 years ago
mail Remove incorrect HTML self close tag (#23748) 2 years ago
org Remove incorrect HTML self close tag (#23748) 2 years ago
package Display image size for multiarch container images (#23821) 2 years ago
projects Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 2 years ago
repo Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 2 years ago
shared Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
status Remove incorrect HTML self close tag (#23748) 2 years ago
swagger Implement Issue Config (#20956) 2 years ago
user Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 2 years ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2 years ago
install.tmpl Remove incorrect HTML self close tag (#23748) 2 years ago
post-install.tmpl Remove incorrect HTML self close tag (#23748) 2 years ago