aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/view.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-04-07 10:48:23 +0200
committerGitHub <noreply@github.com>2023-04-07 16:48:23 +0800
commitca5722a0fae6cc16dc99021176596970bbf29caf (patch)
tree09b435640e30089c0c104884614f68e0898c2872 /routers/web/repo/view.go
parentff2f479a4b23484f3717e1efaa24819f9b0e5e60 (diff)
downloadgitea-ca5722a0fae6cc16dc99021176596970bbf29caf.tar.gz
gitea-ca5722a0fae6cc16dc99021176596970bbf29caf.zip
Ensure RSS icon is present on all repo tabs (#23904)
Previously, not all repo tabs had shown the RSS icon in the repo header because the context data was not being set. Added this context data in a new function. Before: <img width="806" alt="image" src="https://user-images.githubusercontent.com/115237/229639615-9cc00e75-3a26-4ff4-a6f2-316c1fccc596.png"> After: <img width="815" alt="Screenshot 2023-04-04 at 00 16 17" src="https://user-images.githubusercontent.com/115237/229639201-2e1c015b-1f13-46d4-aa14-e7a82fab3982.png"> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/web/repo/view.go')
-rw-r--r--routers/web/repo/view.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go
index 2a57f8ef37..5bf961f412 100644
--- a/routers/web/repo/view.go
+++ b/routers/web/repo/view.go
@@ -711,9 +711,6 @@ func Home(ctx *context.Context) {
feed.ShowRepoFeed(ctx, ctx.Repo.Repository, showFeedType)
return
}
-
- ctx.Data["EnableFeed"] = true
- ctx.Data["FeedURL"] = ctx.Repo.Repository.Link()
}
checkHomeCodeViewable(ctx)