@ -141,6 +141,10 @@ func renderDirectory(ctx *context.Context, treeLink string) {
return
return
}
}
if ctx . Repo . TreePath != "" {
ctx . Data [ "Title" ] = ctx . Tr ( "repo.file.title" , ctx . Repo . Repository . Name + "/" + path . Base ( ctx . Repo . TreePath ) , ctx . Repo . RefName )
}
// 3 for the extensions in exts[] in order
// 3 for the extensions in exts[] in order
// the last one is for a readme that doesn't
// the last one is for a readme that doesn't
// strictly match an extension
// strictly match an extension
@ -374,7 +378,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st
}
}
defer dataRc . Close ( )
defer dataRc . Close ( )
ctx . Data [ "Title" ] = ctx . Data [ "Title" ] . ( string ) + " - " + ctx . Tr ( "repo.file.title" , ctx . Repo . TreePath , ctx . Repo . RefName )
ctx . Data [ "Title" ] = ctx . Tr ( "repo.file.title" , ctx . Repo . Repository . Name + "/" + path . Base ( ctx . Repo . TreePath ) , ctx . Repo . RefName )
fileSize := blob . Size ( )
fileSize := blob . Size ( )
ctx . Data [ "FileIsSymlink" ] = entry . IsLink ( )
ctx . Data [ "FileIsSymlink" ] = entry . IsLink ( )