summaryrefslogtreecommitdiff
path: root/app/helpers/tree_helper.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-01-28 03:32:48 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-01-28 03:48:18 -0500
commit4e7a4cd95696746bcab78a4f9ec071dd4089397a (patch)
treee7abebe5edd248e6369a5eb5ea4e4b28fcf8f6ec /app/helpers/tree_helper.rb
parentfe831dcd6f4af535abba1a9dc350c4d8a0f809e9 (diff)
downloadgitlab-ce-4e7a4cd95696746bcab78a4f9ec071dd4089397a.tar.gz
Use `icon` helper method in helper modules
Diffstat (limited to 'app/helpers/tree_helper.rb')
-rw-r--r--app/helpers/tree_helper.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb
index 727ec3fb231..b6fb7a8aa5a 100644
--- a/app/helpers/tree_helper.rb
+++ b/app/helpers/tree_helper.rb
@@ -38,13 +38,8 @@ module TreeHelper
#
# type - String type of the tree item; either 'folder' or 'file'
def tree_icon(type)
- icon_class = if type == 'folder'
- 'fa fa-folder'
- else
- 'fa fa-file-o'
- end
-
- content_tag :i, nil, class: icon_class
+ icon_class = type == 'folder' ? 'folder' : 'file-o'
+ icon(icon_class)
end
def tree_hex_class(content)