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 /templates/devtest/gitea-ui.tmpl | |
parent | 61be51e56baf037aa7902e7cd066b895a10da244 (diff) | |
download | gitea-b068dbd40ee3b4dc7d18cdcf168f0c24cea234c0.tar.gz gitea-b068dbd40ee3b4dc7d18cdcf168f0c24cea234c0.zip |
Refactor DateUtils and merge TimeSince (#32409)
Follow #32383 and #32402
Diffstat (limited to 'templates/devtest/gitea-ui.tmpl')
-rw-r--r-- | templates/devtest/gitea-ui.tmpl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/devtest/gitea-ui.tmpl b/templates/devtest/gitea-ui.tmpl index 06d0e36569..56874917b2 100644 --- a/templates/devtest/gitea-ui.tmpl +++ b/templates/devtest/gitea-ui.tmpl @@ -139,13 +139,13 @@ <div> <h1>TimeSince</h1> - <div>Now: {{TimeSince .TimeNow ctx.Locale}}</div> - <div>5s past: {{TimeSince .TimePast5s ctx.Locale}}</div> - <div>5s future: {{TimeSince .TimeFuture5s ctx.Locale}}</div> - <div>2m past: {{TimeSince .TimePast2m ctx.Locale}}</div> - <div>2m future: {{TimeSince .TimeFuture2m ctx.Locale}}</div> - <div>1y past: {{TimeSince .TimePast1y ctx.Locale}}</div> - <div>1y future: {{TimeSince .TimeFuture1y ctx.Locale}}</div> + <div>Now: {{DateUtils.TimeSince .TimeNow}}</div> + <div>5s past: {{DateUtils.TimeSince .TimePast5s}}</div> + <div>5s future: {{DateUtils.TimeSince .TimeFuture5s}}</div> + <div>2m past: {{DateUtils.TimeSince .TimePast2m}}</div> + <div>2m future: {{DateUtils.TimeSince .TimeFuture2m}}</div> + <div>1y past: {{DateUtils.TimeSince .TimePast1y}}</div> + <div>1y future: {{DateUtils.TimeSince .TimeFuture1y}}</div> </div> <div> |