summaryrefslogtreecommitdiff
path: root/app/helpers/button_helper.rb
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-11-01 00:57:57 +0000
committerFatih Acet <acetfatih@gmail.com>2016-11-01 00:57:57 +0000
commitb328c7885532ccff70e1f9f7dc970a8dde0c52d6 (patch)
tree92f765cc522f3f498779d6bce762954dc7e4877d /app/helpers/button_helper.rb
parent0a31ad3f880be0ecb6caa85920bf8c26bfd34340 (diff)
parent3a40842f8d195351652ae276272b46e3afe196c2 (diff)
downloadgitlab-ce-b328c7885532ccff70e1f9f7dc970a8dde0c52d6.tar.gz
Merge branch 'mr-copy-filename-btn-update' into 'master'
Updated positioning of copy file path button in diffs ## What does this MR do? Updated the positioning of the copy file path button in diffs. ## Screenshots (if relevant) ![Screen_Shot_2016-10-31_at_16.53.24](/uploads/53de39ce550855f86b90d2d9fc227f95/Screen_Shot_2016-10-31_at_16.53.24.png) ## What are the relevant issue numbers? Closes #23591 See merge request !7203
Diffstat (limited to 'app/helpers/button_helper.rb')
-rw-r--r--app/helpers/button_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb
index 85e1dc33ee8..dee3c78df47 100644
--- a/app/helpers/button_helper.rb
+++ b/app/helpers/button_helper.rb
@@ -16,13 +16,14 @@ module ButtonHelper
# See http://clipboardjs.com/#usage
def clipboard_button(data = {})
css_class = data[:class] || 'btn-clipboard btn-transparent'
+ title = data[:title] || 'Copy to Clipboard'
data = { toggle: 'tooltip', placement: 'bottom', container: 'body' }.merge(data)
content_tag :button,
icon('clipboard'),
class: "btn #{css_class}",
data: data,
type: :button,
- title: 'Copy to Clipboard'
+ title: title
end
def http_clone_button(project, placement = 'right', append_link: true)