diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 16a739406..8611c7cf7 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -21,6 +21,7 @@ user_profile_and_more = Profile and Settings… signed_in_as = Signed in as enable_javascript = This website works better with JavaScript. toc = Table of Contents +return=Back OpenI username = Username email = Email Address diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index fec135a7f..ad6951957 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -21,6 +21,7 @@ user_profile_and_more=个人信息和配置 signed_in_as=已登录用户 enable_javascript=使用 JavaScript能使本网站更好的工作。 toc=目录 +return=返回OpenI username=用户名 email=电子邮件地址 diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl index 8f29f371b..921fe7f8b 100755 --- a/templates/base/footer_content.tmpl +++ b/templates/base/footer_content.tmpl @@ -26,6 +26,7 @@ {{end}} + {{if .EnableSwagger}}API{{end}} {{template "custom/extra_links_footer" .}} diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl index 1829bbcd3..c69eaf7b8 100644 --- a/templates/swagger/ui.tmpl +++ b/templates/swagger/ui.tmpl @@ -16,9 +16,25 @@ margin: 0; background: #fff; } + .swagger-back-link { + color: #1f69c0; + text-decoration: none; + position: absolute; + top: 1rem; + right: 1.5rem; + display: flex; + align-items: center; + } + + .swagger-back-link svg { + color: inherit; + fill: currentColor; + margin-right: .5rem; + } + {{svg "octicon-reply" 16}}{{.i18n.Tr "return"}}