diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-01-28 03:30:27 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-01-28 03:37:44 -0500 |
commit | fe831dcd6f4af535abba1a9dc350c4d8a0f809e9 (patch) | |
tree | d1633e058a956cb91f7d47c7ef6954affec9cfce /app/helpers/application_helper.rb | |
parent | 8633bbc9b852d8809f20db86a3cdfa2cd3b8dd95 (diff) | |
download | gitlab-ce-fe831dcd6f4af535abba1a9dc350c4d8a0f809e9.tar.gz |
Move `spinner` helper into IconsHelper
Also updates it to use the new `icon` method.
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 104ae517a08..d00f1aac2d6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -247,15 +247,6 @@ module ApplicationHelper Gitlab::MarkdownHelper.gitlab_markdown?(filename) end - def spinner(text = nil, visible = false) - css_class = 'loading' - css_class << ' hide' unless visible - - content_tag :div, class: css_class do - content_tag(:i, nil, class: 'fa fa-spinner fa-spin') + text - end - end - def link_to(name = nil, options = nil, html_options = nil, &block) begin uri = URI(options) |