fix(wiki): folder listing template #539
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user