forgejo/templates/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
..
applications
auth
base
emails
org
packages
repo
runners
user
actions.tmpl
config.tmpl
cron.tmpl
dashboard.tmpl
hook_new.tmpl
hooks.tmpl
layout_footer.tmpl
layout_head.tmpl
navbar.tmpl
notice.tmpl
queue.tmpl
queue_manage.tmpl
self_check.tmpl
stacktrace-row.tmpl
stacktrace.tmpl
stats.tmpl
system_status.tmpl