aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorPanagiotis "Ivory" Vasilopoulos <git@n0toose.net>2023-07-31 08:44:45 +0000
committerGitHub <noreply@github.com>2023-07-31 08:44:45 +0000
commitd58c5425799335ea57f27461f99ddd1078e9b2de (patch)
tree917fac7672c6204e9b928385f856a5156e9dbec2 /routers
parent72363be7caa3c253e08daf058e5aebd6e795f0ef (diff)
downloadgitea-d58c5425799335ea57f27461f99ddd1078e9b2de.tar.gz
gitea-d58c5425799335ea57f27461f99ddd1078e9b2de.zip
Add 'Show on a map' button to Location in profile, fix layout (#26214)
Not too important, but I think that it'd be a pretty neat touch. Also fixes some layout bugs introduced by a previous PR. --------- Co-authored-by: Gusted <postmaster@gusted.xyz> Co-authored-by: Caesar Schinas <caesar@caesarschinas.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/user/profile.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go
index 15a9197b98..7f6e41d30f 100644
--- a/routers/web/user/profile.go
+++ b/routers/web/user/profile.go
@@ -52,6 +52,7 @@ func userProfile(ctx *context.Context) {
ctx.Data["Title"] = ctx.ContextUser.DisplayName()
ctx.Data["PageIsUserProfile"] = true
+ ctx.Data["UserLocationMapURL"] = setting.Service.UserLocationMapURL
// prepare heatmap data
if setting.Service.EnableUserHeatmap {