From 787fda53efc65916294caa6faf4aa8ecaf6cf86c Mon Sep 17 00:00:00 2001 From: Thiago Avelino Date: Sun, 1 Jan 2017 00:51:10 -0200 Subject: UI config to toggle whether user email shows up in Explore Users (#336) * UI config to toggle whether user email shows up in Explore Users * Recommendation made by @tboerger https://github.com/go-gitea/gitea/pull/336/commits/66a1c59fe730eff019ce100673c6800cce7d102d#r94122732 * fixed typo, rename ShowUserEmailInExplore to ShowUserEmail * Fixed typo merged conflict * Hide email in the user profile page if you are active ShowUserEmail ref https://github.com/go-gitea/gitea/pull/336#issuecomment-269843725 * Please replace MustBool() with MustBool(true) --- routers/home.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers/home.go') diff --git a/routers/home.go b/routers/home.go index d3c48f7aae..f5172182d5 100644 --- a/routers/home.go +++ b/routers/home.go @@ -229,6 +229,7 @@ func RenderUserSearch(ctx *context.Context, opts *UserSearchOptions) { ctx.Data["Total"] = count ctx.Data["Page"] = paginater.New(int(count), opts.PageSize, page, 5) ctx.Data["Users"] = users + ctx.Data["ShowUserEmail"] = setting.UI.ShowUserEmail ctx.HTML(200, opts.TplName) } -- cgit v1.2.3