From 2dcd50fb157a278ae5bfcc8ee0d55a939b851778 Mon Sep 17 00:00:00 2001 From: Gitea Date: Fri, 21 May 2021 15:25:24 +0800 Subject: [PATCH] set activity tab style according to filter value --- routers/user/profile.go | 1 + templates/user/profile.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/routers/user/profile.go b/routers/user/profile.go index 062adf0f7..063b26914 100755 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -179,6 +179,7 @@ func Profile(ctx *context.Context) { total = ctxUser.NumFollowing case "activity": typeQuery := ctx.Query("type") + ctx.Data["ActTabName"] = typeQuery onlyPerformedBy := true if typeQuery == "all" { onlyPerformedBy = false diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index bf5ed67d7..4b1619f0c 100755 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -118,9 +118,9 @@
{{end}}