summaryrefslogtreecommitdiff
path: root/app/views/projects/compare/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/compare/show.html.haml')
-rw-r--r--app/views/projects/compare/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/compare/show.html.haml b/app/views/projects/compare/show.html.haml
index 95186b85838..1bdf3d1e6e3 100644
--- a/app/views/projects/compare/show.html.haml
+++ b/app/views/projects/compare/show.html.haml
@@ -5,7 +5,7 @@
.js-signature-container{ data: { 'signatures-path' => signatures_namespace_project_compare_index_path } }
#js-compare-selector{ data: project_compare_selector_data(@project, @merge_request, params) }
-- if @commits.present?
+- if @commits.present? || @diffs.present?
-# Only show commit list in the first page
- hide_commit_list = params[:page].present? && params[:page] != '1'
= render "projects/commits/commit_list" unless hide_commit_list