diff --git a/models/org.go b/models/org.go index 8b3e60ef8..28a6701c5 100755 --- a/models/org.go +++ b/models/org.go @@ -208,7 +208,7 @@ func FindTopNMembersOrgs(n int) ([]*OrgScore, error) { } func FindTopNOpenIOrgs(n int) ([]*OrgScore, error) { - sql := "select org_id id,num_score score from org_statistic order by num_score desc limit 10" + strconv.Itoa(n) + sql := "select org_id id,num_score score from org_statistic order by num_score desc limit " + strconv.Itoa(n) return findTopNOrgs(sql) } diff --git a/modules/storage/obs.go b/modules/storage/obs.go index 8e6b4201b..f733eef6c 100755 --- a/modules/storage/obs.go +++ b/modules/storage/obs.go @@ -480,7 +480,7 @@ func GetObsCreateSignedUrlByBucketAndKey(bucket, key string) (string, error) { filename = key[comma+1:] } reqParams := make(map[string]string) - filename = url.QueryEscape(filename) + filename = url.PathEscape(filename) reqParams["response-content-disposition"] = "attachment; filename=\"" + filename + "\"" input.QueryParams = reqParams output, err := ObsCli.CreateSignedUrl(input) @@ -503,6 +503,7 @@ func ObsGetPreSignedUrl(uuid, fileName string) (string, error) { input.Bucket = setting.Bucket input.Expires = 60 * 60 + fileName = url.PathEscape(fileName) reqParams := make(map[string]string) reqParams["response-content-disposition"] = "attachment; filename=\"" + fileName + "\"" input.QueryParams = reqParams diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index 933571a0b..e2b75e704 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -279,7 +279,7 @@ func NotebookShow(ctx *context.Context) { } } - datasetDownloadLink := "-" + datasetDownloadLink := "" if ctx.IsSigned { if task.Uuid != "" && task.UserID == ctx.User.ID { attachment, err := models.GetAttachmentByUUID(task.Uuid) diff --git a/templates/explore/organizations.tmpl b/templates/explore/organizations.tmpl index 58615a8e5..6d308161d 100644 --- a/templates/explore/organizations.tmpl +++ b/templates/explore/organizations.tmpl @@ -83,35 +83,43 @@
{{$.i18n.Tr "org.star"}}
+{{$.i18n.Tr "org.star"}}
{{$user.Name}}
+ {{$user.Name}}{{$user.Score}}
{{$.i18n.Tr "org.member"}}
+{{$.i18n.Tr "org.member"}}
{{$user.Name}}
+ {{$user.Name}}{{$user.Score}}
{{$.i18n.Tr "org.active"}}
+{{$.i18n.Tr "org.active"}}
{{$user.Name}}
+ {{$user.Name}}