|
|
@ -17,8 +17,8 @@ |
|
|
|
{{if not .IsBin}} |
|
|
|
{{if not .IsBin}} |
|
|
|
<span class="add" data-line="{{.Addition}}">{{.Addition}}</span> |
|
|
|
<span class="add" data-line="{{.Addition}}">{{.Addition}}</span> |
|
|
|
<span class="bar"> |
|
|
|
<span class="bar"> |
|
|
|
<span class="pull-left add"></span> |
|
|
|
<div class="pull-left add"></div> |
|
|
|
<span class="pull-left del"></span> |
|
|
|
<div class="pull-left del"></div> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span class="del" data-line="{{.Deletion}}">{{.Deletion}}</span> |
|
|
|
<span class="del" data-line="{{.Deletion}}">{{.Deletion}}</span> |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
@ -36,19 +36,26 @@ |
|
|
|
{{range $i, $file := .Diff.Files}} |
|
|
|
{{range $i, $file := .Diff.Files}} |
|
|
|
{{if $file.IsIncomplete}} |
|
|
|
{{if $file.IsIncomplete}} |
|
|
|
<div class="diff-file-box diff-box file-content"> |
|
|
|
<div class="diff-file-box diff-box file-content"> |
|
|
|
<h4 class="ui top attached normal header"> |
|
|
|
<h4 class="ui top attached normal header rounded"> |
|
|
|
{{$.i18n.Tr "repo.diff.file_suppressed"}} |
|
|
|
|
|
|
|
<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> |
|
|
|
<span class="add" data-line="{{.Addition}}">+ {{.Addition}}</span> |
|
|
|
<span class="bar"> |
|
|
|
<span class="bar"> |
|
|
|
<span class="pull-left add"></span> |
|
|
|
<div class="pull-left add"></div> |
|
|
|
<span class="pull-left del"></span> |
|
|
|
<div class="pull-left del"></div> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span class="del" data-line="{{.Deletion}}">- {{.Deletion}}</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> |
|
|
|
|
|
|
|
<div>{{$.i18n.Tr "repo.diff.file_suppressed"}}</div> |
|
|
|
|
|
|
|
{{if not $file.IsSubmodule}} |
|
|
|
|
|
|
|
{{if $file.IsDeleted}} |
|
|
|
|
|
|
|
<a class="ui basic grey tiny button" rel="nofollow" href="{{EscapePound $.BeforeSourcePath}}/{{EscapePound .Name}}">{{$.i18n.Tr "repo.diff.view_file"}}</a> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
<a class="ui basic grey tiny button" rel="nofollow" href="{{EscapePound $.SourcePath}}/{{EscapePound .Name}}">{{$.i18n.Tr "repo.diff.view_file"}}</a> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
{{end}} |
|
|
|
</h4> |
|
|
|
</h4> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
@ -60,8 +67,8 @@ |
|
|
|
{{else if not $file.IsRenamed}} |
|
|
|
{{else if not $file.IsRenamed}} |
|
|
|
<span class="add" data-line="{{.Addition}}">+ {{.Addition}}</span> |
|
|
|
<span class="add" data-line="{{.Addition}}">+ {{.Addition}}</span> |
|
|
|
<span class="bar"> |
|
|
|
<span class="bar"> |
|
|
|
<span class="pull-left add"></span> |
|
|
|
<div class="pull-left add"></div> |
|
|
|
<span class="pull-left del"></span> |
|
|
|
<div class="pull-left del"></div> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span class="del" data-line="{{.Deletion}}">- {{.Deletion}}</span> |
|
|
|
<span class="del" data-line="{{.Deletion}}">- {{.Deletion}}</span> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|