diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-19 14:39:07 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-19 14:39:07 +0800 |
commit | 3da325591b5d8578f575f5fad59595f3c5efe4d6 (patch) | |
tree | 65d0d4c045311044d2526052dc6b734ff6a56db2 /templates/repo/commits.tmpl | |
parent | 3ceb008e1f50b89a2e0fda8fac939df92642219c (diff) | |
download | gitea-3da325591b5d8578f575f5fad59595f3c5efe4d6.tar.gz gitea-3da325591b5d8578f575f5fad59595f3c5efe4d6.zip |
bug fixed for commits list
Diffstat (limited to 'templates/repo/commits.tmpl')
-rw-r--r-- | templates/repo/commits.tmpl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index 9190a030a3..4bffb9daf7 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -5,8 +5,9 @@ <div id="gogs-body" class="container"> <div id="gogs-commits"> <ul> - {{range .Commits}} - <li>{{.Committer.Name}} - {{.Id}} - {{.Message}} - {{.Committer.When}}</li> + {{$r := List .Commits}} + {{range $r}} + <li>{{.Committer.Name}} - {{.Id}} - {{.Message}} - {{.Committer.When}}</li> {{end}} </ul> </div> |