diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-01-28 03:32:48 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-01-28 03:48:18 -0500 |
commit | 4e7a4cd95696746bcab78a4f9ec071dd4089397a (patch) | |
tree | e7abebe5edd248e6369a5eb5ea4e4b28fcf8f6ec /app/helpers/tree_helper.rb | |
parent | fe831dcd6f4af535abba1a9dc350c4d8a0f809e9 (diff) | |
download | gitlab-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.rb | 9 |
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) |