mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-16 23:18:56 +08:00
FIX 解决标签列表和发行版列表中下周zip包、tar包导致的404问题
This commit is contained in:
@@ -14,8 +14,8 @@ json.releases do
|
||||
json.name re["name"]
|
||||
json.body re["body"]
|
||||
json.url re["url"]
|
||||
json.tarball_url re["tarball_url"]
|
||||
json.zipball_url re["zipball_url"]
|
||||
json.tarball_url render_tar_url(@owner, @repository, re["tag_name"])
|
||||
json.zipball_url render_zip_url(@owner, @repository, re["tag_name"])
|
||||
json.draft re["draft"] ? "草稿" : (re["prerelease"] ? "预发行" : "稳定")
|
||||
json.created_at format_time(version.created_at.to_s.to_time)
|
||||
json.published_at format_time(version.created_at.to_s.to_time)
|
||||
@@ -30,8 +30,8 @@ json.releases do
|
||||
json.name re["name"]
|
||||
json.body re["body"]
|
||||
json.url re["url"]
|
||||
json.tarball_url re["tarball_url"]
|
||||
json.zipball_url re["zipball_url"]
|
||||
json.tarball_url render_tar_url(@owner, @repository, re["tag_name"])
|
||||
json.zipball_url render_zip_url(@owner, @repository, re["tag_name"])
|
||||
json.draft re["draft"] ? "草稿" : (re["prerelease"] ? "预发行" : "稳定")
|
||||
json.created_at format_time(version.created_at.to_s.to_time)
|
||||
json.published_at format_time(version.created_at.to_s.to_time)
|
||||
|
||||
Reference in New Issue
Block a user