gitforge/services/context
Burak Emir de6a74832b fix: honor format="duration" on <relative-time> (#12415)
The admin system status template wraps the server start time in
<relative-time format="duration"> intending to display elapsed time as
a bare duration ("two months"), but the custom element ignored the
format attribute and always rendered "two months ago". Implement the
duration mode using Intl.NumberFormat with style: "unit" so the same
calendar-aware diffing produces a localized, suffix-free string.

Resolves https://codeberg.org/forgejo/forgejo/issues/12078

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12415
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2026-07-10 18:43:12 +02:00
..
upload chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
access_log.go Update module github.com/go-chi/chi/v5 to v5.3.0 (forgejo) (#12697) 2026-06-29 23:35:12 +02:00
api.go chore(refactor): remove GetX redundant accessors and use X in services/context/api.go (#13215) 2026-06-27 18:34:52 +02:00
api_org.go
api_test.go chore(refactor): add getter/setter to APIContext data members (#13143) 2026-06-27 02:53:45 +02:00
base.go fix: introduce lint-single-response to prevent control flow continuing past a ctx.Error(...)-style method (#13087) 2026-06-14 17:06:03 +02:00
base_test.go
captcha.go
context.go fix: honor format="duration" on <relative-time> (#12415) 2026-07-10 18:43:12 +02:00
context_cookie.go feat: persist OAuth2/OIDC sign-in via IdP re-validation (#12321) 2026-05-15 02:31:20 +02:00
context_model.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
context_request.go
context_response.go
context_test.go
org.go fix(web): org projects assignment in issue view (#7999) 2026-05-02 01:29:40 +02:00
package.go chore(refactor): add getter/setter to APIContext data members (#13143) 2026-06-27 02:53:45 +02:00
pagination.go
permission.go chore(refactor): add getter/setter to APIContext data members (#13143) 2026-06-27 02:53:45 +02:00
private.go
quota.go chore(refactor): add getter/setter to APIContext data members (#13143) 2026-06-27 02:53:45 +02:00
repo.go feat: granular settings for watched repo units (#10927) 2026-07-09 19:51:10 +02:00
repository.go chore(refactor): add getter/setter to APIContext data members (#13143) 2026-06-27 02:53:45 +02:00
response.go
user.go chore(refactor): add getter/setter to APIContext data members (#13143) 2026-06-27 02:53:45 +02:00
utils.go