From 7e19200e5360ad3636153a8e4bc8e4b4fd40a872 Mon Sep 17 00:00:00 2001 From: Jack Hay Date: Mon, 9 May 2022 15:04:27 -0400 Subject: [PATCH] Add tooltip to pending PR comments (#19662) --- options/locale/locale_en-US.ini | 1 + templates/repo/diff/comments.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index d43e34dd8..ba619b413 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1463,6 +1463,7 @@ issues.review.add_review_request = "requested review from %s %s" issues.review.remove_review_request = "removed review request for %s %s" issues.review.remove_review_request_self = "refused to review %s" issues.review.pending = Pending +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. issues.review.review = Review issues.review.reviewers = Reviewers issues.review.outdated = Outdated diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl index 863e29586..6a581ba04 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -37,7 +37,7 @@
{{if and .Review}} {{if eq .Review.Type 0}} -
+
{{$.root.i18n.Tr "repo.issues.review.pending"}}
{{else}}