Browse Source

Merge branch 'standalone_develop' of https://gitlink.org.cn/Trustie/forgeplus into standalone_develop

pull/342/head
xxq250 3 years ago
parent
commit
5e7fe0f28c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/repositories/_simple_entry.json.jbuilder

+ 1
- 1
app/views/repositories/_simple_entry.json.jbuilder View File

@@ -1,7 +1,7 @@
if @project.forge?
is_dir = @sub_entries.is_a?(Array)
file_name = entry['name']
file_type = File.extname(file_name.to_s)[1..-1]
file_type = file_name.starts_with?('.') ? file_name[1..-1] : File.extname(file_name.to_s)[1..-1]
direct_download = file_name.to_s.downcase != "Makefile".downcase && download_type(file_type)
image_type = image_type?(file_type)
json.name file_name


Loading…
Cancel
Save