Skip to content

Commit 58b36cc

Browse files
authored
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.
1 parent 50a72e7 commit 58b36cc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

options/locale/locale_en-US.ini

+3
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,9 @@ cancel = Cancel
611611
language = Language
612612
ui = Theme
613613
hidden_comment_types = Hidden comment types
614+
hidden_comment_types_description = Comment types checked here will not be shown inside issue pages. Checking "Label" for example removes all "<user> added/removed <label>" comments.
615+
hidden_comment_types.ref_tooltip = Comments where this issue was referenced from another issue/commit/…
616+
hidden_comment_types.issue_ref_tooltip = Comments where the user changes the branch/tag associated with the issue
614617
comment_type_group_reference = Reference
615618
comment_type_group_label = Label
616619
comment_type_group_milestone = Milestone

templates/user/settings/appearance.tmpl

+5-2
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,13 @@
7474
{{.locale.Tr "settings.hidden_comment_types"}}
7575
</h4>
7676
<div class="ui attached segment">
77+
<p class="help">
78+
{{.locale.Tr "settings.hidden_comment_types_description"}}
79+
</p>
7780
<form class="ui form" action="{{.Link}}/hidden_comments" method="post">
7881
{{.CsrfTokenHtml}}
7982
<div class="inline field">
80-
<div class="ui checkbox">
83+
<div class="ui checkbox" data-tooltip-content="{{.locale.Tr "settings.hidden_comment_types.ref_tooltip"}}">
8184
<input name="reference" type="checkbox" {{if(call .IsCommentTypeGroupChecked "reference")}}checked{{end}}>
8285
<label>{{.locale.Tr "settings.comment_type_group_reference"}}</label>
8386
</div>
@@ -156,7 +159,7 @@
156159
</div>
157160
</div>
158161
<div class="inline field">
159-
<div class="ui checkbox">
162+
<div class="ui checkbox" data-tooltip-content="{{.locale.Tr "settings.hidden_comment_types.issue_ref_tooltip"}}">
160163
<input name="issue_ref" type="checkbox" {{if (call .IsCommentTypeGroupChecked "issue_ref")}}checked{{end}}>
161164
<label>{{.locale.Tr "settings.comment_type_group_issue_ref"}}</label>
162165
</div>

0 commit comments

Comments
 (0)