diff options
author | Angus Gibson <angus.gibson@anu.edu.au> | 2015-12-09 14:36:39 +1100 |
---|---|---|
committer | Angus Gibson <angus.gibson@anu.edu.au> | 2015-12-09 14:36:39 +1100 |
commit | 06d293a84e73dfbd871c9fa6325cd352e016466c (patch) | |
tree | 51d17bc53ab484ac08d8f74f4dab06d55335a8d5 /conf/locale/locale_zh-CN.ini | |
parent | 120cd4e4716d11f79a7e8c41c066383e579d480a (diff) | |
download | gitea-06d293a84e73dfbd871c9fa6325cd352e016466c.tar.gz gitea-06d293a84e73dfbd871c9fa6325cd352e016466c.zip |
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.
Diffstat (limited to 'conf/locale/locale_zh-CN.ini')
-rwxr-xr-x | conf/locale/locale_zh-CN.ini | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/locale/locale_zh-CN.ini b/conf/locale/locale_zh-CN.ini index 7f5d38a8ba..9b6e3dc2b1 100755 --- a/conf/locale/locale_zh-CN.ini +++ b/conf/locale/locale_zh-CN.ini @@ -1018,7 +1018,7 @@ comment_issue=`评论了工单 <a href="%s/issues/%s">%s#%[2]s</a>` merge_pull_request=`合并了合并请求 <a href="%s/pulls/%s">%s#%[2]s</a>` transfer_repo=将仓库 <code>%s</code> 转移至 <a href="%s">%s</a> push_tag=推送了标签 <a href="%s/src/%s">%[2]s</a> 到 <a href="%[1]s">%[3]s</a> -compare_2_commits=查看 2 次提交的内容对比 +compare_commits=查看 %d 次提交的内容对比 [tool] ago=之前 |