diff --git a/routers/web/repo/view_file.go b/routers/web/repo/view_file.go index 029d74de9a..e3e468a79d 100644 --- a/routers/web/repo/view_file.go +++ b/routers/web/repo/view_file.go @@ -173,7 +173,6 @@ func handleFileViewRenderHTML(ctx *context.Context, fInfo *fileInfo) bool { return false } ctx.Data["IsHTMLFile"] = true - ctx.Data["HasSourceRenderedToggle"] = true return true } @@ -193,7 +192,6 @@ func prepareFileView(ctx *context.Context, entry *git.TreeEntry) { ctx.Data["RawFileLink"] = ctx.Repo.RepoLink + "/raw/" + ctx.Repo.RefTypeNameSubURL() + "/" + util.PathEscapeSegments(ctx.Repo.TreePath) if isHTMLTreePath(ctx.Repo.TreePath) { ctx.Data["IsHTMLFile"] = true - ctx.Data["HasSourceRenderedToggle"] = true } if ctx.Repo.TreePath == ".editorconfig" { diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 287983ae96..266288f306 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -41,15 +41,15 @@ {{ctx.Locale.Tr "repo.file_view_source"}} {{end}} - {{/* this componment is also controlled by frontend plugin renders */}} -