From bb988483bd271e81eacf93ff61594e82c0049eb2 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 29 Aug 2024 11:50:03 -0700 Subject: [PATCH] Allow multiple branches, pull requests --- options/locale/locale_en-US.ini | 1 + .../view_content/sidebar_development.tmpl | 26 ++++++++++++------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index b286e8be13..157565539c 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1627,6 +1627,7 @@ issues.maybefixed = May be fixed by %s issues.create_branch_from_issue_success = Create branch %s from issue successfully issues.pr.completed = Completed issues.pr.conflicted = Merge conflicts +issues.branch.latest = Latest commit %s issues.link.created = Created %s issues.num_participants = %d Participants issues.attachment.open_tab = `Click to see "%s" in a new tab` diff --git a/templates/repo/issue/view_content/sidebar_development.tmpl b/templates/repo/issue/view_content/sidebar_development.tmpl index d48c7c1e8d..dd3bc6b2db 100644 --- a/templates/repo/issue/view_content/sidebar_development.tmpl +++ b/templates/repo/issue/view_content/sidebar_development.tmpl @@ -1,8 +1,8 @@ {{ctx.Locale.Tr "repo.issues.development"}} {{else if and .Branch .DisplayBranch}} - - {{svg "octicon-git-branch" 14}} - - {{.Branch.Name}} - - -
Latest commit {{DateTime "short" .Branch.CommitTime}}
- {{ctx.Locale.Tr "repo.pulls.new"}} +
+
+ {{svg "octicon-git-branch" 14}} + + {{.Branch.Name}} + +
+ +
+
{{ctx.Locale.Tr "repo.issues.branch.latest" (DateTime "short" .Branch.CommitTime)}}
{{end}} {{end}}