File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -731,6 +731,7 @@ func WikiPages(ctx *context.Context) {
731731 }
732732 ctx .Data ["Pages" ] = pages
733733 ctx .Data ["PageDir" ] = ctx .PathParamRaw ("*" )
734+ ctx .Data ["ParentPageDir" ] = path .Dir (ctx .PathParamRaw ("*" ))
734735
735736 ctx .HTML (http .StatusOK , tplWikiPages )
736737}
Original file line number Diff line number Diff line change 1313 {{if .IsRepositoryAdmin}}<div>{{ctx.Locale.Tr "repo.default_branch"}}: {{.Repository.DefaultWikiBranch}}</div>{{end}}
1414 <table class="ui table wiki-pages-list">
1515 <tbody>
16+ {{if .PageDir}}
17+ <tr>
18+ <td>
19+ {{svg "octicon-file-directory-fill"}}
20+ <a href="{{.RepoLink}}/wiki/{{.ParentPageDir}}?action=_pages">..</a>
21+ </td>
22+ <td></td>
23+ </tr>
24+ {{end}}
1625 {{range .Pages}}
1726 <tr>
1827 <td>
You can’t perform that action at this time.
0 commit comments