summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorKia Mei Somabes <kssomabes@up.edu.ph>2018-07-18 11:16:30 +0800
committerKia Mei Somabes <kssomabes@up.edu.ph>2018-07-18 11:16:30 +0800
commit3239860f0aea2ff7721f36b4c424e6e8957c51c7 (patch)
treeee9268b326bd7dcf7aee6117f67ac541cf09d0a0 /app/helpers
parentcb99e0518c36cca62b14f16178e4396a8c7dcee2 (diff)
downloadgitlab-ce-3239860f0aea2ff7721f36b4c424e6e8957c51c7.tar.gz
Refactor code for single file download in repository
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/blob_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb
index 1919b8995f5..7eb45ddd117 100644
--- a/app/helpers/blob_helper.rb
+++ b/app/helpers/blob_helper.rb
@@ -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