diff options
| author | Robert Speicher <rspeicher@gmail.com> | 2015-11-22 23:53:55 -0500 |
|---|---|---|
| committer | Robert Speicher <rspeicher@gmail.com> | 2015-11-24 16:55:26 -0500 |
| commit | acc0f162c864d2a061461467473fca8761b6611f (patch) | |
| tree | 5cde44c41a702563525ab6e6d063f2254244e51a | |
| parent | af65046c5fd9f214124d39a5582b06ee2fe39933 (diff) | |
| download | gitlab-ce-acc0f162c864d2a061461467473fca8761b6611f.tar.gz | |
Move clipboard_button helper to ButtonHelper module
| -rw-r--r-- | app/helpers/button_helper.rb | 7 | ||||
| -rw-r--r-- | app/helpers/clipboard_helper.rb | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb index 8963e96ea1d..bbb35afca89 100644 --- a/app/helpers/button_helper.rb +++ b/app/helpers/button_helper.rb @@ -1,4 +1,11 @@ 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' diff --git a/app/helpers/clipboard_helper.rb b/app/helpers/clipboard_helper.rb deleted file mode 100644 index 3c1d7569fac..00000000000 --- a/app/helpers/clipboard_helper.rb +++ /dev/null @@ -1,8 +0,0 @@ -module ClipboardHelper - def clipboard_button - content_tag :button, - icon('clipboard'), - class: 'btn btn-xs btn-clipboard js-clipboard-trigger', - type: :button - end -end |
