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-05-24 19:06:49 +0300
committerPhil Hughes <me@iamphill.com>2016-06-08 12:10:18 +0300
commit8b40a7745be84659c10db02e3bbb74126bd42414 (patch)
treec1bf27d83bba6f7e766e56477e639c8612521cb6 /app/helpers/button_helper.rb
parent79b375e17876105cefcbc5c451e785aceedb0002 (diff)
Updated tests
Diffstat (limited to 'app/helpers/button_helper.rb')
-rw-r--r--app/helpers/button_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb
index bf5505125ab..fabd726aae9 100644
--- a/app/helpers/button_helper.rb
+++ b/app/helpers/button_helper.rb
@@ -22,6 +22,14 @@ module ButtonHelper
type: :button
end
+ def clipboard_button_with_class(data = {}, css_class: 'btn-clipboard')
+ content_tag :button,
+ icon('clipboard'),
+ class: "btn #{css_class}",
+ data: data,
+ type: :button
+ end
+
def http_clone_button(project)
klass = 'http-selector'
klass << ' has-tooltip' if current_user.try(:require_password?)