summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authordelvh <dev.lh@web.de>2023-04-12 13:59:17 +0200
committerGitHub <noreply@github.com>2023-04-12 19:59:17 +0800
commit58b36cc42291e274dbc80d2d617e63119c64542c (patch)
tree97bada0e711fe1b703b68d83f0c891ca393ada37 /templates/user
parent50a72e7a83a16d183a264e969a73cdbc7fb808f4 (diff)
downloadgitea-58b36cc42291e274dbc80d2d617e63119c64542c.tar.gz
gitea-58b36cc42291e274dbc80d2d617e63119c64542c.zip
Add tooltips to `Hide comment type` settings where necessary (#21306)
Previously, this setting was pretty confusing for users, especially the difference between "reference" and "issue reference". Related: #21321.
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/settings/appearance.tmpl7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/user/settings/appearance.tmpl b/templates/user/settings/appearance.tmpl
index 528fe52f2b..c78caedc96 100644
--- a/templates/user/settings/appearance.tmpl
+++ b/templates/user/settings/appearance.tmpl
@@ -74,10 +74,13 @@
{{.locale.Tr "settings.hidden_comment_types"}}
</h4>
<div class="ui attached segment">
+ <p class="help">
+ {{.locale.Tr "settings.hidden_comment_types_description"}}
+ </p>
<form class="ui form" action="{{.Link}}/hidden_comments" method="post">
{{.CsrfTokenHtml}}
<div class="inline field">
- <div class="ui checkbox">
+ <div class="ui checkbox" data-tooltip-content="{{.locale.Tr "settings.hidden_comment_types.ref_tooltip"}}">
<input name="reference" type="checkbox" {{if(call .IsCommentTypeGroupChecked "reference")}}checked{{end}}>
<label>{{.locale.Tr "settings.comment_type_group_reference"}}</label>
</div>
@@ -156,7 +159,7 @@
</div>
</div>
<div class="inline field">
- <div class="ui checkbox">
+ <div class="ui checkbox" data-tooltip-content="{{.locale.Tr "settings.hidden_comment_types.issue_ref_tooltip"}}">
<input name="issue_ref" type="checkbox" {{if (call .IsCommentTypeGroupChecked "issue_ref")}}checked{{end}}>
<label>{{.locale.Tr "settings.comment_type_group_issue_ref"}}</label>
</div>