From c79af4bed727cc7ce9d12dff8aea698a63e0b4c4 Mon Sep 17 00:00:00 2001 From: wangjr Date: Fri, 7 Jan 2022 14:40:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- options/locale/locale_en-US.ini | 4 ++-- templates/base/footer_content.tmpl | 9 +++++---- templates/base/footer_content_fluid.tmpl | 8 ++++---- templates/base/head.tmpl | 1 + templates/base/head_fluid.tmpl | 1 + templates/base/head_pro.tmpl | 3 ++- web_src/less/openi.less | 15 ++++++++++++--- 7 files changed, 27 insertions(+), 14 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index beb968449..d07e048bf 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2697,5 +2697,5 @@ foot.member_news = Member news foot.industry_advisory = Industry Advisory foot.help = help foot.copyright= Copyright: New Generation Artificial Intelligence Open Source Open Platform (OpenI) -Platform_Tutorial=Platform Tutorial -foot.advice_feedback=advice feedback +Platform_Tutorial = Tutorial +foot.advice_feedback = Feedback diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl index 9a708fc2c..85f8eb576 100755 --- a/templates/base/footer_content.tmpl +++ b/templates/base/footer_content.tmpl @@ -26,12 +26,13 @@ {{end}} - {{.i18n.Tr "custom.Platform_Tutorial"}} - {{if .EnableSwagger}}API{{end}} + + + {{if .EnableSwagger}} {{end}} {{if .IsSigned}} - {{.i18n.Tr "custom.foot.advice_feedback"}} + {{else}} - {{.i18n.Tr "custom.foot.advice_feedback"}} + {{end}} {{template "custom/extra_links_footer" .}} diff --git a/templates/base/footer_content_fluid.tmpl b/templates/base/footer_content_fluid.tmpl index 8d9f2ba40..8c734c1b2 100644 --- a/templates/base/footer_content_fluid.tmpl +++ b/templates/base/footer_content_fluid.tmpl @@ -26,12 +26,12 @@ {{end}} - {{.i18n.Tr "custom.Platform_Tutorial"}} - {{if .EnableSwagger}}API{{end}} + + {{if .EnableSwagger}} {{end}} {{if .IsSigned}} - {{.i18n.Tr "custom.foot.advice_feedback"}} + {{else}} - {{.i18n.Tr "custom.foot.advice_feedback"}} + {{end}} {{template "custom/extra_links_footer" .}} diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 8f360a637..93002b1e3 100755 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -174,6 +174,7 @@ {{else if ne DefaultTheme "gitea"}} {{end}} + {{template "custom/header" .}}