diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 5586e0632..eefdf8c82 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 ed3b32bcc..8b10cc880 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}}