From 8c046073a891e3a192794869628763ef072002eb Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 1 Sep 2015 19:07:02 -0400 Subject: work on PR conversation --- templates/repo/diff.tmpl | 93 +----------------------------------------------- 1 file changed, 1 insertion(+), 92 deletions(-) (limited to 'templates/repo/diff.tmpl') diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 932a109e..a280c81e 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -41,98 +41,7 @@ {{end}} - {{if .DiffNotAvailable}} -

{{.i18n.Tr "repo.diff.data_not_available"}}

- {{else}} -
-
- - {{.i18n.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}} - -
-
    - {{range .Diff.Files}} -
  1. -
    - {{if not .IsBin}} - {{.Addition}} - - - - - {{.Deletion}} - {{else}} - {{$.i18n.Tr "repo.diff.bin"}} - {{end}} -
    - -   - {{.Name}} -
  2. - {{end}} -
-
- - {{range $i, $file := .Diff.Files}} -
-

-
- {{if not $file.IsBin}} - + {{.Addition}} - - - - - - {{.Deletion}} - {{else}} - {{$.i18n.Tr "repo.diff.bin"}} - {{end}} -
- {{$file.Name}} -
- {{if $file.IsDeleted}} - {{$.i18n.Tr "repo.diff.view_file"}} - {{else}} - {{$.i18n.Tr "repo.diff.view_file"}} - {{end}} -
-

-
- {{$isImage := (call $.IsImageFile $file.Name)}} - {{if $isImage}} -
- -
- {{else}} -
- - - {{range .Sections}} - {{range $k, $line := .Lines}} - - - - - - {{end}} - {{end}} - -
- {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} - - {{if $line.RightIdx}}{{$line.RightIdx}}{{end}} - -
{{$line.Content}}
-
-
- {{end}} -
-
-
- {{end}} - {{end}} + {{template "repo/diff_box" .}} {{template "base/footer" .}} -- cgit v1.2.3