diff options
author | Robert Wolff <mahlzahn@posteo.de> | 2025-01-17 00:59:21 +0100 |
---|---|---|
committer | Otto <otto@codeberg.org> | 2025-01-17 00:59:21 +0100 |
commit | cefd786685b8b6f56cc26cb84019376a5a281be3 (patch) | |
tree | c885e38f3741f54ed2de6fa79132f27561388ebb | |
parent | Update dependency @github/relative-time-element to v4.4.5 (forgejo) (#6559) (diff) | |
download | forgejo-cefd786685b8b6f56cc26cb84019376a5a281be3.tar.xz forgejo-cefd786685b8b6f56cc26cb84019376a5a281be3.zip |
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>
-rw-r--r-- | templates/shared/issuelist.tmpl | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl index 7ce7cd6795..b71fde685e 100644 --- a/templates/shared/issuelist.tmpl +++ b/templates/shared/issuelist.tmpl @@ -70,21 +70,13 @@ {{end}} {{if .IsPull}} <div class="branches flex-text-inline"> + {{svg "gitea-double-chevron-right" 12}} <div class="branch"> <a href="{{.PullRequest.BaseRepo.Link}}/src/branch/{{PathEscapeSegments .PullRequest.BaseBranch}}"> {{/* inline to remove the spaces between spans */}} {{if ne .RepoID .PullRequest.BaseRepoID}}<span class="truncated-name">{{.PullRequest.BaseRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.BaseBranch}}</span> </a> </div> - {{svg "gitea-double-chevron-left" 12}} - {{if .PullRequest.HeadRepo}} - <div class="branch"> - <a href="{{.PullRequest.HeadRepo.Link}}/src/branch/{{PathEscapeSegments .PullRequest.HeadBranch}}"> - {{/* inline to remove the spaces between spans */}} - {{if ne .RepoID .PullRequest.HeadRepoID}}<span class="truncated-name">{{.PullRequest.HeadRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.HeadBranch}}</span> - </a> - </div> - {{end}} </div> {{end}} {{if and .Milestone (ne $.listType "milestone")}} |