|
|
@@ -172,6 +172,10 @@ func DatasetIndex(ctx *context.Context) { |
|
|
for _, attachment := range pageAttachments { |
|
|
for _, attachment := range pageAttachments { |
|
|
uploader, _ := models.GetUserByID(attachment.UploaderID) |
|
|
uploader, _ := models.GetUserByID(attachment.UploaderID) |
|
|
attachment.Uploader = uploader |
|
|
attachment.Uploader = uploader |
|
|
|
|
|
if !strings.HasSuffix(attachment.Name, ".zip") { |
|
|
|
|
|
attachment.DecompressState = 3 //非zip文件 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ctx.Data["Page"] = pager |
|
|
ctx.Data["Page"] = pager |
|
|
|