diff options
author | Earl Warren <109468362+earl-warren@users.noreply.github.com> | 2023-10-14 23:13:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-14 16:13:59 -0500 |
commit | 89c9a498fdd6184df8afda8b5b488462e65b9e71 (patch) | |
tree | f0921dbc437aff226cc597ea088b5a7a52700592 /templates | |
parent | 02d4e4d412d41364d504ab168804143c37ff75bc (diff) | |
download | gitea-89c9a498fdd6184df8afda8b5b488462e65b9e71.tar.gz gitea-89c9a498fdd6184df8afda8b5b488462e65b9e71.zip |
Add anchor to review types (#26894)
- 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 1741a5f1fe6adc68bb5f87bdd1c5bdc5bfaa45c7)
---------
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-authored-by: Caesar Schinas <caesar@caesarschinas.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index d3fe424b84..baa3380c65 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -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}} @@ -403,7 +403,7 @@ </span> </div> {{if or .Content .Attachments}} - <div class="timeline-item comment" id="{{.HashTag}}"> + <div class="timeline-item comment"> <div class="content comment-container"> <div class="ui top attached header comment-header gt-df gt-ac gt-sb"> <div class="comment-header-left gt-df gt-ac"> |