diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 5586e0632bc..eefdf8c8246 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -9,6 +9,8 @@ + {{else if .IsDiffCompare}} + {{ShortSha .BeforeCommitId}} ... {{ShortSha .AfterCommitId}} {{end}}
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index ed3b32bcc69..8b10cc8808e 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -3,14 +3,6 @@ {{template "repo/header" .}}
{{if .IsDiffCompare }} - {{template "repo/commits_table" .}} {{else}}