Rename v4 FontAwesome icons to match v5/v6 name
While FontAwesome provides aliases for all icons, we switch to the new names for consistency. See all changes at: https://fontawesome.com/docs/web/setup/upgrade/upgrade-from-v4#icons-renamed-since-version-4
This commit is contained in:

committed by
Sebastian Serth

parent
d93e71dc28
commit
b98c37ae64
@ -3,25 +3,25 @@
|
||||
class FileTree
|
||||
def file_icon(file)
|
||||
if file.file_type.audio?
|
||||
'fa fa-file-audio-o'
|
||||
'fa-regular fa-file-audio'
|
||||
elsif file.file_type.image?
|
||||
'fa fa-file-image-o'
|
||||
'fa-regular fa-file-image'
|
||||
elsif file.file_type.video?
|
||||
'fa fa-file-video-o'
|
||||
'fa-regular fa-file-video'
|
||||
elsif file.read_only?
|
||||
'fa fa-lock'
|
||||
'fa-solid fa-lock'
|
||||
elsif file.file_type.executable?
|
||||
'fa fa-file-code-o'
|
||||
'fa-regular fa-file-code'
|
||||
elsif file.file_type.renderable?
|
||||
'fa fa-file-text-o'
|
||||
'fa-regular fa-file-text'
|
||||
else
|
||||
'fa fa-file-o'
|
||||
'fa-regular fa-file'
|
||||
end
|
||||
end
|
||||
private :file_icon
|
||||
|
||||
def folder_icon
|
||||
'fa fa-folder-o'
|
||||
'fa-regular fa-folder'
|
||||
end
|
||||
private :folder_icon
|
||||
|
||||
|
Reference in New Issue
Block a user