Browse Source

Merge pull request #2125 from angus-g/fixes/compare-commits

Only show comparison link for >2 commits, fixes #1110
for-closed-social
Unknwon 9 years ago
parent
commit
989f30eb41
16 changed files with 724 additions and 941 deletions
  1. +1
    -1
      conf/locale/locale_bg-BG.ini
  2. +1
    -1
      conf/locale/locale_de-DE.ini
  3. +1
    -1
      conf/locale/locale_en-US.ini
  4. +1
    -1
      conf/locale/locale_es-ES.ini
  5. +1
    -1
      conf/locale/locale_fr-FR.ini
  6. +1
    -1
      conf/locale/locale_it-IT.ini
  7. +1
    -1
      conf/locale/locale_ja-JP.ini
  8. +1
    -1
      conf/locale/locale_lv-LV.ini
  9. +1
    -1
      conf/locale/locale_nl-NL.ini
  10. +1
    -1
      conf/locale/locale_pl-PL.ini
  11. +1
    -1
      conf/locale/locale_pt-BR.ini
  12. +1
    -1
      conf/locale/locale_ru-RU.ini
  13. +1
    -1
      conf/locale/locale_zh-CN.ini
  14. +1
    -1
      conf/locale/locale_zh-HK.ini
  15. +709
    -926
      modules/bindata/bindata.go
  16. +1
    -1
      templates/user/dashboard/feeds.tmpl

+ 1
- 1
conf/locale/locale_bg-BG.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`коментира проблем %s#%[2]s
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=преди

+ 1
- 1
conf/locale/locale_de-DE.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`hat Issue %s#%[2]s kommentiert`
merge_pull_request=`Pull-Request <a href="%s/pulls/%s">%s#%[2]s</a> zuammengeführt`
transfer_repo=hat Repository <code>%s</code> transferiert an <a href="%s">%s</a>
push_tag=hat nach <a href="%s/src/%s">%[2]s</a> in <a href="%[1]s">%[3]s</a> gepusht
compare_2_commits=Zeige Vergleich dieser 2 Commits
compare_commits=Zeige Vergleich dieser %d Commits
[tool]
ago=vor

+ 1
- 1
conf/locale/locale_en-US.ini View File

@ -1021,7 +1021,7 @@ comment_issue = `commented on issue %s#%[2]s`
merge_pull_request = `merged pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
transfer_repo = transfered repository <code>%s</code> to <a href="%s">%s</a>
push_tag = pushed tag <a href="%s/src/%s">%[2]s</a> to <a href="%[1]s">%[3]s</a>
compare_2_commits = View comparison for these 2 commits
compare_commits = View comparison for these %d commits
[tool]
ago = ago

+ 1
- 1
conf/locale/locale_es-ES.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`comentó en la incidencia %s#%[2]s`
merge_pull_request=`fusionado pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
transfer_repo=transfirió el repositorio <code>%s</code> a <a href="%s">%s</a>
push_tag=hizo push del tag <a href="%s/src/%s">%[2]s</a> a <a href="%[1]s">%[3]s</a>
compare_2_commits=Ver la comparación de estos 2 commits
compare_commits=Ver la comparación de estos %d commits
[tool]
ago=hace

+ 1
- 1
conf/locale/locale_fr-FR.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`a commenté le problème %s#%[2]s`
merge_pull_request=`pull request fusionné le <a href="%s/pulls/%s">%s#%[2]s</a>`
transfer_repo=a transféré le dépôt <code>%s</code> à <a href="%s">%s</a>
push_tag=a soumis le tag <a href="%s/src/%s">%[2]s</a> à <a href="%[1]s">%[3]s</a>
compare_2_commits=Comparer ces 2 commits
compare_commits=Comparer ces %d commits
[tool]
ago=auparavant

+ 1
- 1
conf/locale/locale_it-IT.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`ha commentato il problema %s#%[2]s`
merge_pull_request=`merged pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
transfer_repo=ha trasferito il repository <code>%s</code> a <a href="%s">%s</a>
push_tag=ha pushato il tag <a href="%s/src/%s">%[2]s</a> a <a href="%[1]s">%[3]s</a>
compare_2_commits=Vedi confronto per questi 2 commit
compare_commits=Vedi confronto per questi %d commit
[tool]
ago=fa

+ 1
- 1
conf/locale/locale_ja-JP.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`問題 %s#%[2]s のコメント`
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="%[1]s">%[3]s</a> に タグ <a href="%[1]s/src/%[2]s">%[2]s</a> をプッシュしました
compare_2_commits=これら 2 のコミットの比較を閲覧する
compare_commits=これら %d のコミットの比較を閲覧する
[tool]
ago=

+ 1
- 1
conf/locale/locale_lv-LV.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`pievienoja komentāru problēmai %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ļ

+ 1
- 1
conf/locale/locale_nl-NL.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`reactie op issue %s#%[2]s`
merge_pull_request=`merged pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
transfer_repo=repositorie verplaatst naar <code>%s</code> naar <a href="%s">%s</a>
push_tag=geduwd label <a href="%s/src/%s"> %[2]s</a> naar <a href="%[1]s"> %[3]s</a>
compare_2_commits=Weergave vergelijking voor deze 2 commits
compare_commits=Weergave vergelijking voor deze %d commits
[tool]
ago=geleden

+ 1
- 1
conf/locale/locale_pl-PL.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`skomentował problem #%[2]s %[3]s`
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

+ 1
- 1
conf/locale/locale_pt-BR.ini View File

@ -1018,7 +1018,7 @@ comment_issue='comentou sobre a questão %s#%[2]s'
merge_pull_request=`mesclou o pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
transfer_repo=repositório transferido de <code>%s</code> para <a href="%s">%s</a>
push_tag=Foi feito push na tag <a href="%s/src/%s">%[2]s</a> para <a href="%[1]s">%[3]s</a>
compare_2_commits=Ver comparação desses 2 commits
compare_commits=Ver comparação desses %d commits
[tool]
ago=atrás

+ 1
- 1
conf/locale/locale_ru-RU.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`прокомментировал(а) вопрос 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=Просмотреть сравнение двух коммитов
compare_commits=Просмотреть сравнение %d коммитов
[tool]
ago=назад

+ 1
- 1
conf/locale/locale_zh-CN.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`评论了工单 %s#%[2]s`
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=之前

+ 1
- 1
conf/locale/locale_zh-HK.ini View File

@ -1018,7 +1018,7 @@ comment_issue=`評論了問題 %s#%[2]s`
merge_pull_request=`merged 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=之前

+ 709
- 926
modules/bindata/bindata.go
File diff suppressed because it is too large
View File


+ 1
- 1
templates/user/dashboard/feeds.tmpl View File

@ -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}}

Loading…
Cancel
Save