|
|
|
@@ -243,6 +243,11 @@ func renderDirectory(ctx *context.Context, treeLink string) { |
|
|
|
ctx.Data["ReadmeInList"] = true |
|
|
|
ctx.Data["ReadmeExist"] = true |
|
|
|
ctx.Data["FileIsSymlink"] = readmeFile.isSymlink |
|
|
|
ctx.Data["ReadmeName"] = readmeFile.name |
|
|
|
|
|
|
|
if ctx.Repo.CanEnableEditor() { |
|
|
|
ctx.Data["CanEditFile"] = true |
|
|
|
} |
|
|
|
|
|
|
|
dataRc, err := readmeFile.blob.DataAsync() |
|
|
|
if err != nil { |
|
|
|
|