diff options
author | Sullivan SENECHAL <soullivaneuh@gmail.com> | 2014-10-04 14:29:18 +0400 |
---|---|---|
committer | Sullivan SENECHAL <soullivaneuh@gmail.com> | 2015-03-28 18:49:05 +0300 |
commit | 8ef7220c2316810e2a9bd784f22d25b4a073c138 (patch) | |
tree | c4a0398366e34aca7620ff7417fb44564392630d /app/helpers/blob_helper.rb | |
parent | db948ff3d6a72620391c7cb0f169334cef0438c7 (diff) |
Improve file icons rendering on tree
Diffstat (limited to 'app/helpers/blob_helper.rb')
-rw-r--r-- | app/helpers/blob_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb index 798d62b3a09..4ea838ca447 100644 --- a/app/helpers/blob_helper.rb +++ b/app/helpers/blob_helper.rb @@ -61,4 +61,12 @@ module BlobHelper 'Preview changes' end end + + # Return an image icon depending on the file mode and extension + # + # mode - File unix mode + # mode - File name + def blob_icon(mode, name) + icon("#{file_type_icon_class('file', mode, name)} fw") + end end |