From 7b637e9fa02d1118c63ee575744f5be43ec84430 Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Wed, 14 Jul 2021 15:19:16 +0800 Subject: [PATCH] fix-81 --- options/locale/locale_zh-CN.ini | 1 + routers/org/home.go | 1 + templates/org/navber.tmpl | 32 ++++++++++++++++++-------------- 3 files changed, 20 insertions(+), 14 deletions(-) mode change 100644 => 100755 routers/org/home.go mode change 100644 => 100755 templates/org/navber.tmpl diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 8c0509752..a8f1455e7 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -1819,6 +1819,7 @@ org_full_name_holder=组织全名 org_name_helper=组织名字应该简单明了。 create_org=创建组织 repo_updated=最后更新于 +home=组织主页 people=组织成员 teams=组织团队 lower_members=名成员 diff --git a/routers/org/home.go b/routers/org/home.go old mode 100644 new mode 100755 index fa61218d3..b11c179c1 --- a/routers/org/home.go +++ b/routers/org/home.go @@ -20,6 +20,7 @@ const ( // Home show organization home page func Home(ctx *context.Context) { ctx.SetParams(":org", ctx.Params(":username")) + ctx.Data["PageIsOrgHome"] = true context.HandleOrgAssignment(ctx) if ctx.Written() { return diff --git a/templates/org/navber.tmpl b/templates/org/navber.tmpl old mode 100644 new mode 100755 index 74ecb13f8..9ff92845e --- a/templates/org/navber.tmpl +++ b/templates/org/navber.tmpl @@ -1,14 +1,16 @@