From 55afc1ad21a6c5bebe7f7f8b6df8b0ee4308ba10 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 4 Apr 2017 01:45:57 -0400 Subject: models/repo_diff: move core functions to gogits/git-module --- templates/repo/diff/box.tmpl | 8 ++++---- templates/repo/diff/section_unified.tmpl | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 89e46e80..78237877 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -89,27 +89,27 @@ {{if $.IsSplitStyle}} - {{$highlightClass := $file.GetHighlightClass}} + {{$highlightClass := $file.HighlightClass}} {{range $j, $section := $file.Sections}} {{range $k, $line := $section.Lines}} {{if eq .GetType 4}} {{else}} {{end}} diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl index 619f97cf..0832d39f 100644 --- a/templates/repo/diff/section_unified.tmpl +++ b/templates/repo/diff/section_unified.tmpl @@ -1,5 +1,5 @@ {{$file := .}} -{{$highlightClass := $file.GetHighlightClass}} +{{$highlightClass := $file.HighlightClass}} {{range $j, $section := $file.Sections}} {{range $k, $line := $section.Lines}} @@ -20,7 +20,7 @@ {{end}} {{end}} -- cgit v1.2.3
-
{{$section.GetComputedInlineDiffFor $line}}
+
{{$section.ComputedInlineDiffFor $line}}
{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} -
{{if $line.LeftIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
+
{{if $line.LeftIdx}}{{$section.ComputedInlineDiffFor $line}}{{end}}
{{if $line.RightIdx}}{{$line.RightIdx}}{{end}} -
{{if $line.RightIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
+
{{if $line.RightIdx}}{{$section.ComputedInlineDiffFor $line}}{{end}}
-
{{$section.GetComputedInlineDiffFor $line}}
+
{{$section.ComputedInlineDiffFor $line}}