Skip to content
代码片段 群组 项目
提交 280983bd 编辑于 作者: Albert Salim's avatar Albert Salim
浏览文件

Merge branch '369858_fix_blame_btn_for_single_page' into 'master'

Don't show View entire blame button for a single blame page

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/98049



Merged-by: default avatarAlbert Salim <asalim@gitlab.com>
Approved-by: default avatarMax Orefice <morefice@gitlab.com>
Approved-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
Approved-by: default avatarAlbert Salim <asalim@gitlab.com>
Co-authored-by: default avatarVasilii Iakliushin <viakliushin@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -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|
......
......@@ -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
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册