Skip to content

Commit e569058

Browse files
jackHay22AbdulrhmnGhanem
authored andcommitted
Add tooltip to pending PR comments (go-gitea#19662)
1 parent 0502adf commit e569058

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

options/locale/locale_en-US.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1463,6 +1463,7 @@ issues.review.add_review_request = "requested review from %s %s"
14631463
issues.review.remove_review_request = "removed review request for %s %s"
14641464
issues.review.remove_review_request_self = "refused to review %s"
14651465
issues.review.pending = Pending
1466+
issues.review.pending.tooltip = This comment is not currently visible to other users. To submit your pending comments, select '%s' -> '%s/%s/%s' at the top of the page.
14661467
issues.review.review = Review
14671468
issues.review.reviewers = Reviewers
14681469
issues.review.outdated = Outdated

templates/repo/diff/comments.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div class="comment-header-right actions df ac">
3838
{{if and .Review}}
3939
{{if eq .Review.Type 0}}
40-
<div class="ui label basic small yellow pending-label">
40+
<div class="ui label basic small yellow pending-label tooltip" data-content="{{$.root.i18n.Tr "repo.issues.review.pending.tooltip" ($.root.i18n.Tr "repo.diff.review") ($.root.i18n.Tr "repo.diff.review.approve") ($.root.i18n.Tr "repo.diff.review.comment") ($.root.i18n.Tr "repo.diff.review.reject")}}">
4141
{{$.root.i18n.Tr "repo.issues.review.pending"}}
4242
</div>
4343
{{else}}

0 commit comments

Comments
 (0)