Skip to content

Commit b27dbb3

Browse files
committed
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 go-gitea#16804 Signed-off-by: Andrew Thornton <[email protected]>
1 parent d22cb60 commit b27dbb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/user/dashboard/feeds.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
</span>
100100
</li>
101101
{{end}}
102-
{{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}}
102+
{{if and (gt (len $push.Commits) 1) $push.CompareURL}}<li><a href="{{AppSubUrl}}/{{$push.CompareURL}}">{{$.i18n.Tr "action.compare_commits" $push.Len}} »</a></li>{{end}}
103103
</ul>
104104
</div>
105105
{{else if eq .GetOpType 6}}

0 commit comments

Comments
 (0)