Commit acc0f162 authored by Robert Speicher's avatar Robert Speicher

Move clipboard_button helper to ButtonHelper module

parent af65046c
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)
klass = 'btn'
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