summaryrefslogtreecommitdiff
path: root/app/helpers/tree_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/tree_helper.rb')
-rw-r--r--app/helpers/tree_helper.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb
index f39d0081dce..2d82b6a0b47 100644
--- a/app/helpers/tree_helper.rb
+++ b/app/helpers/tree_helper.rb
@@ -25,8 +25,13 @@ module TreeHelper
#
# type - String type of the tree item; either 'folder' or 'file'
def tree_icon(type)
- image = type == 'folder' ? 'file_dir.png' : 'file_txt.png'
- image_tag(image, size: '16x16')
+ icon_class = if type == 'folder'
+ 'icon-folder-close'
+ else
+ 'icon-file-alt'
+ end
+
+ content_tag :i, nil, class: icon_class
end
def tree_hex_class(content)