UI related changed for ENABLE_SIZE_LIMIT & REPO_SIZE_LIMIT options

This commit is contained in:
truecode112 authored and DmitryFrolovTri committed 2023-05-15 17:06:39 +00:00
1 parent a22b73866a
commit 66c476e5de
7 files changed
+98 -1

No files matched your search

+5
View File
@@ -141,6 +141,11 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
pager.AddParamString(relevantReposOnlyParam, fmt.Sprint(opts.OnlyShowRelevant))
ctx.Data["Page"] = pager
if ctx.Data["Err_Repo_Size_Limit"] != nil {
ctx.RenderWithErr(ctx.Tr("admin.config.invalid_repo_size"), opts.TplName, nil)
return
}
ctx.HTML(http.StatusOK, opts.TplName)
}