loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove source branch from pr list, fix #5009, #6080 (#6522)

### What?
It removes the source branch that is not necessary in the PR list (see #5009). It adds a little chevron to the right in front of the target branch. That could be replaced by words (“into”), or removed, if preferred. But, I think it looks decent like that.
### Screenshots
#### Before
![image](/attachments/be3c9817-2207-4610-b6bd-70304436f81d)
#### After
![image](/attachments/a7c84d2f-1592-4a82-aecc-d038f9495ef7)
### Testing
Run the development version of forgejo from the PR. For any existing repository with PRs, open the pulls list.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6522
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Robert Wolff <mahlzahn@posteo.de>
Co-committed-by: Robert Wolff <mahlzahn@posteo.de>

authored by

Robert Wolff
Robert Wolff
and committed by
Otto
cefd7866 907ab8bd

+1 -9
+1 -9
templates/shared/issuelist.tmpl
··· 70 70 {{end}} 71 71 {{if .IsPull}} 72 72 <div class="branches flex-text-inline"> 73 + {{svg "gitea-double-chevron-right" 12}} 73 74 <div class="branch"> 74 75 <a href="{{.PullRequest.BaseRepo.Link}}/src/branch/{{PathEscapeSegments .PullRequest.BaseBranch}}"> 75 76 {{/* inline to remove the spaces between spans */}} 76 77 {{if ne .RepoID .PullRequest.BaseRepoID}}<span class="truncated-name">{{.PullRequest.BaseRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.BaseBranch}}</span> 77 78 </a> 78 79 </div> 79 - {{svg "gitea-double-chevron-left" 12}} 80 - {{if .PullRequest.HeadRepo}} 81 - <div class="branch"> 82 - <a href="{{.PullRequest.HeadRepo.Link}}/src/branch/{{PathEscapeSegments .PullRequest.HeadBranch}}"> 83 - {{/* inline to remove the spaces between spans */}} 84 - {{if ne .RepoID .PullRequest.HeadRepoID}}<span class="truncated-name">{{.PullRequest.HeadRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.HeadBranch}}</span> 85 - </a> 86 - </div> 87 - {{end}} 88 80 </div> 89 81 {{end}} 90 82 {{if and .Milestone (ne $.listType "milestone")}}