diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-14 09:08:04 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-14 09:08:04 +0000 |
commit | 3ed578edf525bce3167860b84f6b43bab5065cf5 (patch) | |
tree | da8ec39db487cb0023469ec0b2d70bfe2352d500 /app/views/projects/buttons | |
parent | ab4409930970b7974b721fee957baf4f403e51ff (diff) | |
download | gitlab-ce-3ed578edf525bce3167860b84f6b43bab5065cf5.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/projects/buttons')
-rw-r--r-- | app/views/projects/buttons/_download.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml index 2d32e07d379..23dcb7f41e1 100644 --- a/app/views/projects/buttons/_download.html.haml +++ b/app/views/projects/buttons/_download.html.haml @@ -1,3 +1,5 @@ +- project = local_assigns.fetch(:project) +- ref = local_assigns.fetch(:ref) - pipeline = local_assigns.fetch(:pipeline) { project.latest_successful_pipeline_for(ref) } - if !project.empty_repo? && can?(current_user, :download_code, project) |