Refactor code for single file download in repository
This commit is contained in:
parent
cb99e0518c
commit
3239860f0a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue