summaryrefslogtreecommitdiff
path: root/app/views/shared/snippets
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-30 12:15:20 -0500
committerDouwe Maan <douwe@selenight.nl>2017-04-30 17:52:49 -0500
commit2b3fc5e624bd0c8b9e1c68bf2b3741d8898cf0b0 (patch)
treed29cab907f6c68f2703bc56043e345948bfc578f /app/views/shared/snippets
parent54040ce0662c71cfaee3cc12305b5ab021beafbb (diff)
downloadgitlab-ce-dm-snippet-download-button.tar.gz
Add download button to project snippetsdm-snippet-download-button
Diffstat (limited to 'app/views/shared/snippets')
-rw-r--r--app/views/shared/snippets/_blob.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/shared/snippets/_blob.html.haml b/app/views/shared/snippets/_blob.html.haml
index 67d186e2874..fd4ee840a19 100644
--- a/app/views/shared/snippets/_blob.html.haml
+++ b/app/views/shared/snippets/_blob.html.haml
@@ -18,7 +18,6 @@
= copy_blob_source_button(blob)
= open_raw_blob_button(blob)
- - if defined?(download_path) && download_path
- = link_to icon('download'), download_path, class: "btn btn-sm has-tooltip", title: 'Download', data: { container: 'body' }
+ = link_to icon('download'), blob_raw_url(inline: false), target: '_blank', class: "btn btn-sm has-tooltip", title: 'Download', data: { container: 'body' }
= render 'projects/blob/content', blob: blob