summaryrefslogtreecommitdiffstats
path: root/templates/admin/repo
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-04-26 03:48:30 +0800
committerGitHub <noreply@github.com>2023-04-25 15:48:30 -0400
commit0e8045d8ea51b1bf856cfd9c57cabd8187a3a2ab (patch)
tree90294cc32a89f4354ed3ad76d328dd2973b50fbf /templates/admin/repo
parent9219534447411f6ffe507fee64f89c619c29d501 (diff)
downloadgitea-0e8045d8ea51b1bf856cfd9c57cabd8187a3a2ab.tar.gz
gitea-0e8045d8ea51b1bf856cfd9c57cabd8187a3a2ab.zip
Fix template function DateTime (#24317)
Before, 500 error ![image](https://user-images.githubusercontent.com/2114189/234170176-403ffd1b-ec27-42be-bff9-86184dc8d74d.png)
Diffstat (limited to 'templates/admin/repo')
-rw-r--r--templates/admin/repo/list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl
index f9a0a6ef98..3d09f2de23 100644
--- a/templates/admin/repo/list.tmpl
+++ b/templates/admin/repo/list.tmpl
@@ -80,7 +80,7 @@
<td>{{.NumForks}}</td>
<td>{{.NumIssues}}</td>
<td>{{FileSize .Size}}</td>
- <td>{{DateTime "short" .CreatedUnix.FormatLong .CreatedUnix.FormatShort}}</td>
+ <td>{{DateTime "short" .CreatedUnix}}</td>
<td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}">{{svg "octicon-trash"}}</a></td>
</tr>
{{end}}