diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-30 20:15:20 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-01 01:52:49 +0300 |
commit | 2b3fc5e624bd0c8b9e1c68bf2b3741d8898cf0b0 (patch) | |
tree | d29cab907f6c68f2703bc56043e345948bfc578f /app/views/shared | |
parent | 54040ce0662c71cfaee3cc12305b5ab021beafbb (diff) |
Add download button to project snippets
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/snippets/_blob.html.haml | 3 |
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 |