File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
templates/repo/issue/view_content Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -1627,6 +1627,7 @@ issues.maybefixed = May be fixed by %s
16271627issues.create_branch_from_issue_success = Create branch %s from issue successfully
16281628issues.pr.completed = Completed
16291629issues.pr.conflicted = Merge conflicts
1630+ issues.branch.latest = Latest commit %s
16301631issues.link.created = Created %s
16311632issues.num_participants = %d Participants
16321633issues.attachment.open_tab = `Click to see "%s" in a new tab`
Original file line number Diff line number Diff line change 11<span class="text"><strong>{{ctx.Locale.Tr "repo.issues.development"}}</strong></span>
22<div class="ui devlinks list">
3- {{if not .DevLinks}}
3+ <div>
44<a class="tw-mt-1 fluid ui show-modal" data-modal="#create_branch">{{ctx.Locale.Tr "repo.branch.new_branch"}}</a>
5- {{end}}
5+ </div>
66{{range .DevLinks}}
77 {{if .PullRequest}}
88 <span>{{template "shared/issueicon" .PullRequest.Issue}}
2525 {{end}}
2626 </div>
2727 {{else if and .Branch .DisplayBranch}}
28- <span>
29- {{svg "octicon-git-branch" 14}}
30- <a href="{{.Branch.Repo.Link}}/src/branch/{{.Branch.Name}}" class="item">
31- <span class="gt-ellipsis">{{.Branch.Name}}</span>
32- </a>
33- </span>
34- <div>Latest commit {{DateTime "short" .Branch.CommitTime}}</div>
35- <a href="{{$.Issue.Repo.Link}}/compare/{{$.Issue.Repo.DefaultBranch}}...{{.Branch.Repo.FullName}}:{{.Branch.Name}}">{{ctx.Locale.Tr "repo.pulls.new"}}</a>
28+ <div class="tw-flex tw-justify-between">
29+ <div class="tw-flex tw-left tw-items-center tw-h-full">
30+ {{svg "octicon-git-branch" 14}}
31+ <a href="{{.Branch.Repo.Link}}/src/branch/{{.Branch.Name}}">
32+ <span class="gt-ellipsis">{{.Branch.Name}}</span>
33+ </a>
34+ </div>
35+ <div class="tw-right">
36+ <a class="ui button mini compact basic icon" href="{{$.Issue.Repo.Link}}/compare/{{$.Issue.Repo.DefaultBranch}}...{{.Branch.Repo.FullName}}:{{.Branch.Name}}">
37+ {{svg "octicon-git-pull-request"}}
38+ </a>
39+ </div>
40+ </div>
41+ <div>{{ctx.Locale.Tr "repo.issues.branch.latest" (DateTime "short" .Branch.CommitTime)}}</div>
3642 {{end}}
3743{{end}}
3844</div>
You can’t perform that action at this time.
0 commit comments