From 0483ee8f69ef91ac3c2a710d43abb31a461ae30a Mon Sep 17 00:00:00 2001 From: neon <78957398+neonn@users.noreply.github.com> Date: Thu, 5 May 2022 18:58:37 +0000 Subject: [PATCH] Add "Reference" section to Issue view sidebar (#19609) * Add "Reference" section to Issue view sidebar * Removed unneeded tailored CSS, added Fomantic UI classes * Removed tailored CSS in favour of HTML-only approach Kindly provided by @Gusted * Added i18 translation key for reference link string * Corrected spelling of "References:" to "Reference:" for reference link text * Removed `Issue.ReferenceLink` in favour of a local template variable --- options/locale/locale_en-US.ini | 1 + templates/repo/issue/view_content/sidebar.tmpl | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 0175c8bfc8..c040386ca7 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1480,6 +1480,7 @@ issues.content_history.created = created issues.content_history.delete_from_history = Delete from history issues.content_history.delete_from_history_confirm = Delete from history? issues.content_history.options = Options +issues.reference_link = Reference: %s compare.compare_base = base compare.compare_head = compare diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 9e9bc670a0..ffc46bfede 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -568,6 +568,15 @@ {{end}} {{end}} +
+