|
|
@ -38,12 +38,7 @@ |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<div class="diff-counter count pull-right"> |
|
|
|
<div class="diff-counter count pull-right"> |
|
|
|
{{if not .IsBin}} |
|
|
|
{{if not .IsBin}} |
|
|
|
<span class="add" data-line="{{.Addition}}">+{{.Addition}}</span> |
|
|
|
{{template "repo/diff/stats" .}} |
|
|
|
<span class="bar"> |
|
|
|
|
|
|
|
<div class="pull-left add"></div> |
|
|
|
|
|
|
|
<div class="pull-left del"></div> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span class="del" data-line="{{.Deletion}}">-{{.Deletion}}</span> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
<span>{{$.i18n.Tr "repo.diff.bin"}}</span> |
|
|
|
<span>{{$.i18n.Tr "repo.diff.bin"}}</span> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
@ -60,12 +55,7 @@ |
|
|
|
<h4 class="ui top attached normal header rounded"> |
|
|
|
<h4 class="ui top attached normal header rounded"> |
|
|
|
<div class="diff-counter count ui left"> |
|
|
|
<div class="diff-counter count ui left"> |
|
|
|
{{if not $file.IsRenamed}} |
|
|
|
{{if not $file.IsRenamed}} |
|
|
|
<span class="add" data-line="{{.Addition}}">+ {{.Addition}}</span> |
|
|
|
{{template "repo/diff/stats" .}} |
|
|
|
<span class="bar"> |
|
|
|
|
|
|
|
<div class="pull-left add"></div> |
|
|
|
|
|
|
|
<div class="pull-left del"></div> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span class="del" data-line="{{.Deletion}}">- {{.Deletion}}</span> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span class="file">{{$file.Name}}</span> |
|
|
|
<span class="file">{{$file.Name}}</span> |
|
|
@ -101,12 +91,7 @@ |
|
|
|
{{if $file.IsBin}} |
|
|
|
{{if $file.IsBin}} |
|
|
|
{{$.i18n.Tr "repo.diff.bin"}} |
|
|
|
{{$.i18n.Tr "repo.diff.bin"}} |
|
|
|
{{else if not $file.IsRenamed}} |
|
|
|
{{else if not $file.IsRenamed}} |
|
|
|
<span class="add" data-line="{{.Addition}}">+ {{.Addition}}</span> |
|
|
|
{{template "repo/diff/stats" .}} |
|
|
|
<span class="bar"> |
|
|
|
|
|
|
|
<div class="pull-left add"></div> |
|
|
|
|
|
|
|
<div class="pull-left del"></div> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span class="del" data-line="{{.Deletion}}">- {{.Deletion}}</span> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span class="file">{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}{{if .IsLFSFile}} ({{$.i18n.Tr "repo.stored_lfs"}}){{end}}</span> |
|
|
|
<span class="file">{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}{{if .IsLFSFile}} ({{$.i18n.Tr "repo.stored_lfs"}}){{end}}</span> |
|
|
|