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.
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)
1 year ago
..
fields Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
labels Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
view_content Fix "Updating branch by merge" bug in "update_branch_by_merge.tmpl" (#23790) 1 year ago
branch_selector_field.tmpl Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 1 year ago
choose.tmpl Implement Issue Config (#20956) 1 year ago
comment_tab.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
label_precolors.tmpl Fix purple color in suggested label colors (#18241) 3 years ago
labels.tmpl Convert `<div class="button">` to `<button class="button">` (#23337) 1 year ago
list.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 1 year ago
milestone_issues.tmpl Added close/open button to details page of milestone (#23877) 1 year ago
milestone_new.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago
milestones.tmpl Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
navbar.tmpl Add some headings to repo views (#22869) 1 year ago
new.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago
new_form.tmpl Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
openclose.tmpl Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
search.tmpl Remove incorrect HTML self close tag (#23748) 1 year ago
view.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago
view_content.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
view_title.tmpl Use data-tooltip-content for tippy tooltip (#23649) 1 year ago