1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

add size for file

This commit is contained in:
Lunny Xiao
2014-03-15 23:38:11 +08:00
parent 2acf54b53b
commit 6bdd6f9b18
3 changed files with 8 additions and 64 deletions

View File

@@ -47,7 +47,7 @@
{{if .IsDir}}
<a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}/{{.Path}}">{{.Name}}</a>
{{else}}
<a href="#">{{.Name}}</a>
<a href="#">{{.Name}} - {{.Size}}</a>
{{end}}</td>
<td class="date"><time datetime="{{.Created}}" data-title="true" title="{{.Created}}">{{TimeSince .Created}}</time></td>
<td class="text">{{.Message}}</td>