Commit 16ef3870 authored by Samantha Ming's avatar Samantha Ming Committed by Paul Slaughter

Show clone button for activity on project page

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/223003

Display clone button on project page for
non-default activity preference.
This solves the issue of the clone button not visible
on project homepage with non-default overivew preference.
parent c4247c9c
- is_project_overview = local_assigns.fetch(:is_project_overview, false)
%div{ class: container_class }
.nav-block.d-none.d-sm-flex.activities
.nav-block.d-none.d-sm-flex.activities.gl-static
= render 'shared/event_filter'
.controls
.controls.gl-display-flex
= link_to project_path(@project, rss_url_options), title: s_("ProjectActivityRSS|Subscribe"), class: 'btn d-none d-sm-inline-block has-tooltip' do
= icon('rss')
- if is_project_overview && can?(current_user, :download_code, @project)
.project-clone-holder.d-none.d-md-inline-flex.gl-ml-2
= render "projects/buttons/clone", dropdown_class: 'dropdown-menu-right'
.content_list.project-activity{ :"data-href" => activity_project_path(@project) }
.loading
......
---
title: Show clone button for activity on project page
merge_request: 36147
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment