summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-15 12:31:12 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-15 12:31:12 -0400
commit8fb4b3afadaea5a335b0e13a02e44377d8714523 (patch)
tree2b3c7e164e0c79a573121e556da20ac51d61c51f /templates/repo
parent4224ef142e9b7d7f34ae7f24799d62ea787787c5 (diff)
downloadgitea-8fb4b3afadaea5a335b0e13a02e44377d8714523.tar.gz
gitea-8fb4b3afadaea5a335b0e13a02e44377d8714523.zip
Add template func FileSize
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/single.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl
index b99950ef51..5774c0051d 100644
--- a/templates/repo/single.tmpl
+++ b/templates/repo/single.tmpl
@@ -47,7 +47,7 @@
{{if .IsDir}}
<a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}/{{.Path}}">{{.Name}}</a>
{{else}}
- <a href="#">{{.Name}} - {{.Size}}</a>
+ <a href="#">{{.Name}} - {{FileSize .Size}}</a>
{{end}}</td>
<td class="date"><time datetime="{{.Created}}" data-title="true" title="{{.Created}}">{{TimeSince .Created}}</time></td>
<td class="text">{{.Message}}</td>