forgejo/routers/web/admin
Gusted f68bc0ec6a
[REFACTOR] Simplify converting struct to map in admin stats
- Instead of relying on JSON to convert the struct to map, use
`reflect` to do this conversion. Also simplify it a bit by only passing
one variable to the template.
- This avoids issues where the conversion to JSON causes changes in
the value, for example huge numbers are converted to its scientific
notation but are consequently not converted back when being displayed.
- Adds unit tests.
- Resolves an issue where the amount of comments is being displayed in
scientific notation on Codeberg.
2024-02-22 22:25:19 +01:00
..
admin.go [REFACTOR] Simplify converting struct to map in admin stats 2024-02-22 22:25:19 +01:00
admin_test.go [REFACTOR] Simplify converting struct to map in admin stats 2024-02-22 22:25:19 +01:00
applications.go
auths.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
config.go
diagnosis.go
emails.go
hooks.go
main_test.go
notice.go
orgs.go
packages.go
queue.go
queue_tester.go
repos.go
runners.go
stacktrace.go
users.go Unify user update methods (#28733) 2024-02-04 13:29:09 +00:00
users_test.go