summaryrefslogtreecommitdiffstats
path: root/templates/repo/single.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-15 23:38:11 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-15 23:38:11 +0800
commit6bdd6f9b18136a6066f3fc87349037027eb7a499 (patch)
tree8772e0111fd83abf6abef36796a68166e7a49b38 /templates/repo/single.tmpl
parent2acf54b53b9be5cbd014f7af02e543a359e7f8f4 (diff)
downloadgitea-6bdd6f9b18136a6066f3fc87349037027eb7a499.tar.gz
gitea-6bdd6f9b18136a6066f3fc87349037027eb7a499.zip
add size for file
Diffstat (limited to 'templates/repo/single.tmpl')
-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 f71e87f0fb..b99950ef51 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}}</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>