Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-02 16:53:29 +0300
committerDouwe Maan <douwe@selenight.nl>2017-05-02 16:53:29 +0300
commit0ca6ff67e438a8218ac53edd6280041d2f4b7a9c (patch)
treefe363ceb7df8961e3b32cc265f50a34cfe760c48 /app/views/shared/snippets
parent2b3fc5e624bd0c8b9e1c68bf2b3741d8898cf0b0 (diff)
Add download_snippet_path helper
Diffstat (limited to 'app/views/shared/snippets')
-rw-r--r--app/views/shared/snippets/_blob.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/snippets/_blob.html.haml b/app/views/shared/snippets/_blob.html.haml
index fd4ee840a19..9bcb4544b97 100644
--- a/app/views/shared/snippets/_blob.html.haml
+++ b/app/views/shared/snippets/_blob.html.haml
@@ -18,6 +18,6 @@
= copy_blob_source_button(blob)
= open_raw_blob_button(blob)
- = link_to icon('download'), blob_raw_url(inline: false), target: '_blank', class: "btn btn-sm has-tooltip", title: 'Download', data: { container: 'body' }
+ = link_to icon('download'), download_snippet_path(@snippet), target: '_blank', class: "btn btn-sm has-tooltip", title: 'Download', data: { container: 'body' }
= render 'projects/blob/content', blob: blob