diff options
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> |