diff --git a/mergo.go b/mergo.go new file mode 100644 index 0000000..1c3744a --- /dev/null +++ b/mergo.go @@ -0,0 +1,81 @@ + {{if or .blobBase .blobHead}} +
{{.root.locale.Tr "repo.diff.file_before"}}
++ + {{.root.locale.Tr "repo.diff.file_image_width"}}: + | + {{.root.locale.Tr "repo.diff.file_image_height"}}: + | + + {{.root.locale.Tr "repo.diff.file_byte_size"}}: {{FileSize .blobBase.Size}} +
+ + {{end}} + {{if .blobHead}} + +{{.root.locale.Tr "repo.diff.file_after"}}
++ + {{.root.locale.Tr "repo.diff.file_image_width"}}: + | + {{.root.locale.Tr "repo.diff.file_image_height"}}: + | + + {{.root.locale.Tr "repo.diff.file_byte_size"}}: {{FileSize .blobHead.Size}} +
+ + {{end}} +{{.RowIdx}} | + {{range $j, $cell := $row.Cells}} + {{if not $cell}} ++ {{else if eq $cell.Type 2}} + | {{.LeftCell}} {{.RightCell}} | + {{else if eq $cell.Type 3}} +{{.RightCell}} | + {{else if eq $cell.Type 4}} +{{.LeftCell}} | + {{else if eq $cell.Type 5}} +{{.RightCell}} | + {{else if eq $cell.Type 6}} +{{.LeftCell}} {{.RightCell}} | + {{else}} +{{.RightCell}} | + {{end}} + {{end}} + {{else}} +{{if .RowIdx}}{{.RowIdx}}{{end}} | + {{range $j, $cell := $row.Cells}} + {{if not $cell}} ++ {{else if eq $cell.Type 2}} + | {{.LeftCell}} {{.RightCell}} | + {{else if eq $cell.Type 3}} +{{.RightCell}} | + {{else if eq $cell.Type 4}} +{{.LeftCell}} | + {{else if eq $cell.Type 5}} +{{.RightCell}} | + {{else if eq $cell.Type 6}} +{{.LeftCell}} {{.RightCell}} | + {{else}} +{{.RightCell}} | + {{end}} + {{end}} + {{end}} +
---|