Commit 3239860f authored by Kia Mei Somabes's avatar Kia Mei Somabes

Refactor code for single file download in repository

parent cb99e051
......@@ -234,7 +234,7 @@ module BlobHelper
def download_blob_button(blob)
return if blob.empty?
title = 'Download'
link_to sprite_icon('download'), blob_raw_path(inline: false), download: @path, class: 'btn btn-sm has-tooltip', target: '_blank', rel: 'noopener noreferrer', title: title, data: { container: 'body' }
end
......
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