BigW Consortium Gitlab

Commit acc0f162 by Robert Speicher

Move clipboard_button helper to ButtonHelper module

parent af65046c
module ButtonHelper module ButtonHelper
def clipboard_button
content_tag :button,
icon('clipboard'),
class: 'btn btn-xs btn-clipboard js-clipboard-trigger',
type: :button
end
def http_clone_button(project) def http_clone_button(project)
klass = 'btn' klass = 'btn'
klass << ' active' if default_clone_protocol == 'http' klass << ' active' if default_clone_protocol == 'http'
......
module ClipboardHelper
def clipboard_button
content_tag :button,
icon('clipboard'),
class: 'btn btn-xs btn-clipboard js-clipboard-trigger',
type: :button
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment