aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard/feeds.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-08-26 00:04:58 +0100
committerGitHub <noreply@github.com>2021-08-25 19:04:58 -0400
commitba6baff6966f94a95243b02326add57335de5ef5 (patch)
tree98730e2ec9f71e6d255610f73bc4248c5605e4c2 /templates/user/dashboard/feeds.tmpl
parent28ac4a7a87fb290a61143d99e08bdae9a0284114 (diff)
downloadgitea-ba6baff6966f94a95243b02326add57335de5ef5.tar.gz
gitea-ba6baff6966f94a95243b02326add57335de5ef5.zip
Report the correct number of pushes on the feeds (#16811)
* Report the correct number of pushes on the feeds Since the number of commits in the Action table has been limited to 5 the number of commits reported on the feeds page is now incorrectly also limited to 5. The correct number is available as the Len and this PR changes this to report this. Fix #16804 Signed-off-by: Andrew Thornton <art27@cantab.net> * Update templates/user/dashboard/feeds.tmpl Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/user/dashboard/feeds.tmpl')
-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 1b770d4472..83d064dc95 100644
--- a/templates/user/dashboard/feeds.tmpl
+++ b/templates/user/dashboard/feeds.tmpl
@@ -99,7 +99,7 @@
</span>
</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}}
+ {{if and (gt $push.Len 1) $push.CompareURL}}<li><a href="{{AppSubUrl}}/{{$push.CompareURL}}">{{$.i18n.Tr "action.compare_commits" $push.Len}} »</a></li>{{end}}
</ul>
</div>
{{else if eq .GetOpType 6}}