fix(wiki): folder listing template #539

Merged
jmiller merged 1 commits from feat/79-wiki-folders into dev 2026-06-06 20:52:24 +00:00
+8
View File
@@ -530,6 +530,14 @@ func Wiki(ctx *context.Context) {
if ctx.Written() {
return
}
// Folder listing - no entry but IsWikiFolder flag is set
if ctx.Data["IsWikiFolder"] != nil {
if wikiGitRepo != nil {
defer wikiGitRepo.Close()
}
ctx.HTML(http.StatusOK, tplWikiView)
return
}
if entry == nil {
ctx.Data["Title"] = ctx.Tr("repo.wiki")
ctx.HTML(http.StatusOK, tplWikiStart)