Commit fe4bb060 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch 'download-patch-diff-new-tab' into 'master'

Fix bug, where the download email patches and plain diffs links did not download from the commit page

See merge request gitlab-org/gitlab!52899
parents c4b4e78b 4a07a907
......@@ -48,8 +48,8 @@
%li.dropdown-header
#{ _('Download') }
- unless @commit.parents.length > 1
%li= link_to s_('DownloadCommit|Email Patches'), project_commit_path(@project, @commit, format: :patch), class: "qa-email-patches"
%li= link_to s_('DownloadCommit|Plain Diff'), project_commit_path(@project, @commit, format: :diff), class: "qa-plain-diff"
%li= link_to s_('DownloadCommit|Email Patches'), project_commit_path(@project, @commit, format: :patch), class: "qa-email-patches", rel: 'nofollow', download: ''
%li= link_to s_('DownloadCommit|Plain Diff'), project_commit_path(@project, @commit, format: :diff), class: "qa-plain-diff", rel: 'nofollow', download: ''
.commit-box{ data: { project_path: project_path(@project) } }
%h3.commit-title
......
---
title: Fix bug, where the download email patches and plain diffs links did not download from the commit page
merge_request: 52899
author: Yogi (@yo)
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