From 65444c5ea3b8ee417f0e1194e6e46740256f8cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=99=BA=E8=B6=85?= <1012112796@qq.com> Date: Thu, 27 Aug 2020 00:39:45 +0800 Subject: [PATCH] Add link to home page on swagger ui (#12601) * Add link to home page on swagger ui Signed-off-by: a1012112796 <1012112796@qq.com> * translate * Apply review suggestion * Move to right, Thanks @silverwind * tweaks Co-authored-by: silverwind Co-authored-by: John Olheiser Co-authored-by: techknowlogick --- options/locale/locale_en-US.ini | 1 + templates/swagger/ui.tmpl | 25 ++++++++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 00c5ed6076..388348e95c 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -21,6 +21,7 @@ signed_in_as = Signed in as enable_javascript = This website works better with JavaScript. toc = Table of Contents licenses = Licenses +return_to_gitea = Return to Gitea username = Username email = Email Address diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl index 9072b49a37..eb30578aca 100644 --- a/templates/swagger/ui.tmpl +++ b/templates/swagger/ui.tmpl @@ -6,19 +6,34 @@ + {{svg "octicon-reply" 16}}{{.i18n.Tr "return_to_gitea"}}