We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2041ab5 commit 5795e5bCopy full SHA for 5795e5b
routers/web/repo/view.go
@@ -142,11 +142,6 @@ func renderDirectory(ctx *context.Context, treeLink string) {
142
return
143
}
144
145
- renderDirectoryDefaultFile(ctx, entries, treeLink)
146
-}
147
-
148
-// renderDirectoryDefaultFile render the default file when render a root directory or a sub directory
149
-func renderDirectoryDefaultFile(ctx *context.Context, entries git.Entries, treeLink string) {
150
if ctx.Repo.TreePath != "" {
151
ctx.Data["Title"] = ctx.Tr("repo.file.title", ctx.Repo.Repository.Name+"/"+path.Base(ctx.Repo.TreePath), ctx.Repo.RefName)
152
0 commit comments