FIX image download with in reposotiroy entries
This commit is contained in:
parent
a239025a94
commit
d391972b8b
|
@ -5,8 +5,8 @@ module RepositoriesHelper
|
|||
end
|
||||
|
||||
def download_type(str)
|
||||
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb)
|
||||
default_type.include?(str)
|
||||
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb png jpg gif tif psd svg)
|
||||
default_type.include?(str&.downcase)
|
||||
end
|
||||
|
||||
def render_commit_author(author_json)
|
||||
|
|
Loading…
Reference in New Issue