Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-10-31 19:52:30 +0300
committerPhil Hughes <me@iamphill.com>2016-10-31 19:52:30 +0300
commit3a40842f8d195351652ae276272b46e3afe196c2 (patch)
treea9882984f88adc273c9d67abf5c33ab2ad93e926 /app/helpers/button_helper.rb
parent5566f277caffc6be3f5c7bfa8e8ab2fab2928ce9 (diff)
Updated positioning of copy file path button in diffs
Closes #23591
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)