mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-19 01:05:55 +00:00
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:
parent
120cd4e471
commit
06d293a84e
16 changed files with 724 additions and 941 deletions
|
@ -1018,7 +1018,7 @@ comment_issue=`pievienoja komentāru problēmai <a href="%s/issues/%s">%s#%[2]s<
|
|||
merge_pull_request=`sapludināja izmaiņu pieprasījumu <a href="%s/pulls/%s">%s#%[2]s</a>`
|
||||
transfer_repo=mainīja repozitorija <code>%s</code> īpašnieku uz <a href="%s">%s</a>
|
||||
push_tag=pievienoja tagu <a href="%s/src/%s">%[2]s</a> repozitorijam <a href="%[1]s">%[3]s</a>
|
||||
compare_2_commits=Veikt salīdzināšanu starp šīm 2 revīzijām
|
||||
compare_commits=Veikt salīdzināšanu starp šīm %d revīzijām
|
||||
|
||||
[tool]
|
||||
ago=atpakaļ
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue