diff --git a/app/views/projects/blame/show.html.haml b/app/views/projects/blame/show.html.haml index d4efca668eb7326738b91ef2dd17ecd0ffa9d613..f2c4fe017f26db40bff39a1af3fb3aa07cb3c2b4 100644 --- a/app/views/projects/blame/show.html.haml +++ b/app/views/projects/blame/show.html.haml @@ -59,7 +59,7 @@ - current_line += line_count - - if @blame_pagination + - if @blame_pagination && @blame_pagination.total_pages > 1 .gl-display-flex.gl-justify-content-center.gl-flex-direction-column.gl-align-items-center.gl-p-3.gl-bg-gray-50.gl-border-t-solid.gl-border-t-1.gl-border-gray-100 = _('For faster browsing, not all history is shown.') = render Pajamas::ButtonComponent.new(href: namespace_project_blame_path(namespace_id: @project.namespace, project_id: @project, id: @id, no_pagination: true), size: :small, button_options: { class: 'gl-mt-3' }) do |c| diff --git a/spec/features/projects/blobs/blame_spec.rb b/spec/features/projects/blobs/blame_spec.rb index f50f6911120797c8a497de3cba256153dd1bce2a..5287d5e4f7d783e0a9491182ab3668ea7bdb0753 100644 --- a/spec/features/projects/blobs/blame_spec.rb +++ b/spec/features/projects/blobs/blame_spec.rb @@ -38,6 +38,7 @@ def visit_blob_blame(path) within '[data-testid="blob-content-holder"]' do expect(page).to have_css('.blame-commit') expect(page).not_to have_css('.gl-pagination') + expect(page).not_to have_link _('View entire blame') end end