diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-11-04 19:30:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 11:30:00 +0000 |
commit | b068dbd40ee3b4dc7d18cdcf168f0c24cea234c0 (patch) | |
tree | 154bf826f6850bed412c8d94be37bfcec94adbc6 /services/context | |
parent | 61be51e56baf037aa7902e7cd066b895a10da244 (diff) | |
download | gitea-b068dbd40ee3b4dc7d18cdcf168f0c24cea234c0.tar.gz gitea-b068dbd40ee3b4dc7d18cdcf168f0c24cea234c0.zip |
Refactor DateUtils and merge TimeSince (#32409)
Follow #32383 and #32402
Diffstat (limited to 'services/context')
-rw-r--r-- | services/context/context.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/services/context/context.go b/services/context/context.go index 322f228a4d..42f7c3d9d1 100644 --- a/services/context/context.go +++ b/services/context/context.go @@ -100,7 +100,6 @@ func NewTemplateContextForWeb(ctx *Context) TemplateContext { tmplCtx := NewTemplateContext(ctx) tmplCtx["Locale"] = ctx.Base.Locale tmplCtx["AvatarUtils"] = templates.NewAvatarUtils(ctx) - tmplCtx["DateUtils"] = templates.NewDateUtils(ctx) tmplCtx["RootData"] = ctx.Data tmplCtx["Consts"] = map[string]any{ "RepoUnitTypeCode": unit.TypeCode, |