diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2021-06-29 15:34:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-29 15:34:03 +0200 |
commit | aac663e0da0af644ae1011d268d027160265dce3 (patch) | |
tree | e2001118696d507561664349a27d7b9fca7d01ed /templates/user | |
parent | 579fcad8cdd16e88edc60685fbf9b555266bac76 (diff) | |
download | gitea-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/user')
-rw-r--r-- | templates/user/dashboard/feeds.tmpl | 2 |
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}} |