Only show comparison link for >2 commits #1110

We can look at the PushCommits object to see how many commits were
included in a commit, and add some template logic to only show the
comparison link when there are at least 2 commits in a push. We also
correct the link to display the number of commits.
This commit is contained in:
Angus Gibson
2015-12-09 14:36:39 +11:00
parent 120cd4e471
commit 06d293a84e
16 changed files with 724 additions and 941 deletions

View File

@@ -1018,7 +1018,7 @@ comment_issue=`skomentował problem <a href="%s/issues/%s">#%[2]s %[3]s</a>`
merge_pull_request=scalił pull request <a href="%s/pulls/%s"> %s #%[2]s"</a>
transfer_repo=przeniósł repozytorium <code>%s</code> do <a href="%s">%s</a>
push_tag=opublikował tag <a href="%s/src/%s">%[2]s</a> w <a href="%[1]s">%[3]s</a>
compare_2_commits=Zobacz porównanie tych 2 commitów
compare_commits=Zobacz porównanie tych %d commitów
[tool]
ago=temu