summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-06-29 15:34:03 +0200
committerGitHub <noreply@github.com>2021-06-29 15:34:03 +0200
commitaac663e0da0af644ae1011d268d027160265dce3 (patch)
treee2001118696d507561664349a27d7b9fca7d01ed /templates
parent579fcad8cdd16e88edc60685fbf9b555266bac76 (diff)
downloadgitea-aac663e0da0af644ae1011d268d027160265dce3.tar.gz
gitea-aac663e0da0af644ae1011d268d027160265dce3.zip
Implemented head_commit for webhooks (#16282)
* Removed Len field. * Added head_commit webhook field. * Added comment for returns.
Diffstat (limited to 'templates')
-rw-r--r--templates/user/dashboard/feeds.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl
index 057a4a7625..6ed75ee149 100644
--- a/templates/user/dashboard/feeds.tmpl
+++ b/templates/user/dashboard/feeds.tmpl
@@ -101,7 +101,7 @@
</li>
{{end}}
{{end}}
- {{if and (gt $push.Len 1) $push.CompareURL}}<li><a href="{{AppSubUrl}}/{{$push.CompareURL}}">{{$.i18n.Tr "action.compare_commits" $push.Len}} »</a></li>{{end}}
+ {{if and (gt (len $push.Commits) 1) $push.CompareURL}}<li><a href="{{AppSubUrl}}/{{$push.CompareURL}}">{{$.i18n.Tr "action.compare_commits" (len $push.Commits)}} »</a></li>{{end}}
</ul>
</div>
{{else if eq .GetOpType 6}}