summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff/conversation_outdated.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-02-08 09:50:48 +0800
committerGitHub <noreply@github.com>2024-02-08 01:50:48 +0000
commita4859dcfea0cf1c7818f3cb2dcbb6b83902cc9d5 (patch)
tree0de3f0eea888d67b87a68e8397e74148329945d2 /templates/repo/diff/conversation_outdated.tmpl
parent5c0fc9087211f01375f208d679a1e6de0685320c (diff)
downloadgitea-a4859dcfea0cf1c7818f3cb2dcbb6b83902cc9d5.tar.gz
gitea-a4859dcfea0cf1c7818f3cb2dcbb6b83902cc9d5.zip
Improve user experience for outdated comments (#29050)
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`)
Diffstat (limited to 'templates/repo/diff/conversation_outdated.tmpl')
-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>