From 2aae623ae9bb237ffce1aa8cfd5811e68781e304 Mon Sep 17 00:00:00 2001 From: Gitea Date: Fri, 3 Dec 2021 16:32:34 +0800 Subject: [PATCH] #903 --- options/locale/locale_zh-CN.ini | 1 + public/img/search.svg | 1 + templates/base/head_navbar.tmpl | 72 +++++++++++++++++++++++++---------- templates/base/head_navbar_fluid.tmpl | 67 +++++++++++++++++++++++--------- templates/base/head_navbar_home.tmpl | 45 +++++++++++++--------- 5 files changed, 129 insertions(+), 57 deletions(-) create mode 100644 public/img/search.svg diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index e26e07903..54e362a0a 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -228,6 +228,7 @@ users=用户 organizations=组织 images = 云脑镜像 search=搜索 +search_pro=搜项目 code=代码 data_analysis=数字看板(内测) repo_no_results=未找到匹配的项目。 diff --git a/public/img/search.svg b/public/img/search.svg new file mode 100644 index 000000000..ec91b07dd --- /dev/null +++ b/public/img/search.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index c0c1aff35..299832f2d 100755 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -17,47 +17,57 @@ {{if .IsSigned}} - {{.i18n.Tr "index"}} - {{.i18n.Tr "custom.head.openi"}} - {{if not .UnitIssuesGlobalDisabled}} - {{.i18n.Tr "issues"}} - {{end}} - {{if not .UnitPullsGlobalDisabled}} - {{.i18n.Tr "pull_requests"}} - {{end}} - {{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}} - {{if .ShowMilestonesDashboardPage}}{{.i18n.Tr "milestones"}}{{end}} - {{end}} + + + {{.i18n.Tr "custom.head.project"}} + {{.i18n.Tr "custom.head.dataset"}} + {{else if .IsLandingPageHome}} - {{.i18n.Tr "home"}} - {{.i18n.Tr "custom.head.openi"}} + + {{.i18n.Tr "custom.head.project"}} + {{.i18n.Tr "custom.head.dataset"}} + {{else if .IsLandingPageExplore}} @@ -78,7 +88,18 @@ */}} {{if .IsSigned}} -