aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-08 23:16:03 -0500
committerUnknwon <u@gogs.io>2015-12-08 23:16:03 -0500
commit989f30eb416f2d8709aaff9c235d555f8b109e36 (patch)
tree51d17bc53ab484ac08d8f74f4dab06d55335a8d5 /templates
parent120cd4e4716d11f79a7e8c41c066383e579d480a (diff)
parent06d293a84e73dfbd871c9fa6325cd352e016466c (diff)
downloadgitea-989f30eb416f2d8709aaff9c235d555f8b109e36.tar.gz
gitea-989f30eb416f2d8709aaff9c235d555f8b109e36.zip
Merge pull request #2125 from angus-g/fixes/compare-commits
Only show comparison link for >2 commits, fixes #1110
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 e45fb4cfea..1f4e7d0aad 100644
--- a/templates/user/dashboard/feeds.tmpl
+++ b/templates/user/dashboard/feeds.tmpl
@@ -43,7 +43,7 @@
<li><img class="img-8" src="{{$push.AvatarLink .AuthorEmail}}"> <a href="{{$repoLink}}/commit/{{.Sha1}}">{{ShortSha .Sha1}}</a> <span class="text truncate light grey">{{.Message}}</span></li>
{{end}}
{{end}}
- {{if $push.CompareUrl}}<li><a href="{{AppSubUrl}}/{{$push.CompareUrl}}">{{$.i18n.Tr "action.compare_2_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}}