This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
fixed 下载文件类增加xlsx,Makefile可显示
pull/313/head
xxq250
3 years ago
parent
1c16b74f1b
commit
d0b638cbc0
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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?
file_name = entry['name']
file_type = File.extname(file_name.to_s)[1..-1]
direct_download = file_name.to_s.downcase
.include?("Makefile".downcase)
|| download_type(file_type)
direct_download = file_name.to_s.downcase
== "Makefile".downcase
|| download_type(file_type)
image_type = image_type?(file_type)
json.name file_name
json.sha entry['sha']
Write
Preview
Loading…
Cancel
Save