1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 13:19:37 -05:00

[GITEA] Add anchor to review types

- The review type '22' is a general comment type that is attached to
single codecomments, reviews with multiple comments or to simple approve
and request changes comment. This comment can be used to create a link
towards this action on an pull request.
- Adds an anchor to the review comment type, so that when its getting
linked to it, it actually jumps towards that event.
- This also now fixes the behavior that after you created a review you
will be redirected to that review and because this is an general comment
type other mails will also be 'fixed' such as the approved or request changes.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1248

(cherry picked from commit b0c3075a79)
(cherry picked from commit f61505281c)
(cherry picked from commit 1741a5f1fe)
(cherry picked from commit 5ee4cf2ed9)
(cherry picked from commit 601f00e530)
(cherry picked from commit 9ce8aa57fb)
(cherry picked from commit 854b5a1379)
(cherry picked from commit 96fbeb4416)
(cherry picked from commit 7cabcf0a28)
This commit is contained in:
Gusted 2023-08-19 12:58:17 +02:00 committed by Earl Warren
parent 0ab2a2a671
commit 9e8dad19a0
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -364,7 +364,7 @@
{{end}}
</div>
{{else if eq .Type 22}}
<div class="timeline-item-group">
<div class="timeline-item-group" id="{{.HashTag}}">
<div class="timeline-item event">
{{if .OriginalAuthor}}
{{else}}