summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2024-02-08 10:29:54 +0800
committerGitHub <noreply@github.com>2024-02-08 10:29:54 +0800
commitc9b2aaed0edfc93852f30c3d1d739f0513da62e1 (patch)
tree6cf86db5fc734dbd026b5990768b5de29a541634 /templates
parent19a08c7fe22e64d837dea69a395e36ad72bbf76f (diff)
downloadgitea-c9b2aaed0edfc93852f30c3d1d739f0513da62e1.tar.gz
gitea-c9b2aaed0edfc93852f30c3d1d739f0513da62e1.zip
Improve user experience for outdated comments (#29050) (#29086)
Backport #29050 by wxiaoguang Try to improve #28949 1. Make `ctx.Data["ShowOutdatedComments"] = true` by default: it brings consistent user experience, and sometimes the "outdated (source changed)" comments are still valuable. 2. Show a friendly message if the comment won't show, then the end users won't fell that "the comment disappears" (it is the special case when `ShowOutdatedComments = false`) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/conversation_outdated.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/diff/conversation_outdated.tmpl b/templates/repo/diff/conversation_outdated.tmpl
new file mode 100644
index 0000000000..c6a4bf1979
--- /dev/null
+++ b/templates/repo/diff/conversation_outdated.tmpl
@@ -0,0 +1,3 @@
+<div class="ui segment conversation-holder conversation-not-existing">
+ {{ctx.Locale.Tr "repo.issues.review.outdated_description"}}
+</div>