From ac0741801101d56b6bccd1089ffedf2b3480758b Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Fri, 5 Jun 2020 13:44:54 -0500 Subject: [PATCH] Add compare link to releases (#11752) Signed-off-by: jolheiser Co-authored-by: Lauris BH --- options/locale/locale_en-US.ini | 3 ++- templates/repo/release/list.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 534520d2d2..f2e58b95b8 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1660,7 +1660,8 @@ release.draft = Draft release.prerelease = Pre-Release release.stable = Stable release.edit = edit -release.ahead = %d commits to %s since this release +release.ahead.commits = %d commits +release.ahead.target = to %s since this release release.source_code = Source Code release.new_subheader = Releases organize project versions. release.edit_subheader = Releases organize project versions. diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index d0b160a1c0..baef2c1cee 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -64,8 +64,8 @@ Ghost {{end}} - {{if .CreatedUnix}}{{TimeSinceUnix .CreatedUnix $.Lang}}{{end}} - {{$.i18n.Tr "repo.release.ahead" .NumCommitsBehind .Target | Str2html}} + {{if .CreatedUnix}}{{TimeSinceUnix .CreatedUnix $.Lang}} | {{end}} + {{$.i18n.Tr "repo.release.ahead.commits" .NumCommitsBehind | Str2html}} {{$.i18n.Tr "repo.release.ahead.target" .Target}}

{{Str2html .Note}}