summaryrefslogtreecommitdiffstats
path: root/templates/repo/commits_list_small.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/commits_list_small.tmpl')
-rw-r--r--templates/repo/commits_list_small.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/commits_list_small.tmpl b/templates/repo/commits_list_small.tmpl
index 40a9843c82..5bc159de81 100644
--- a/templates/repo/commits_list_small.tmpl
+++ b/templates/repo/commits_list_small.tmpl
@@ -2,7 +2,7 @@
<div class="timeline-item commits-list">
{{range .comment.Commits}}
{{$tag := printf "%s-%d" $.comment.HashTag $index}}
- {{$index = Add $index 1}}
+ {{$index = Eval $index "+" 1}}
<div class="singular-commit" id="{{$tag}}">
<span class="badge badge-commit">{{svg "octicon-git-commit"}}</span>
{{if .User}}