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.
This commit is contained in:
parent
50a72e7a83
commit
58b36cc422
|
@ -611,6 +611,9 @@ cancel = Cancel
|
||||||
language = Language
|
language = Language
|
||||||
ui = Theme
|
ui = Theme
|
||||||
hidden_comment_types = Hidden comment types
|
hidden_comment_types = Hidden comment types
|
||||||
|
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.
|
||||||
|
hidden_comment_types.ref_tooltip = Comments where this issue was referenced from another issue/commit/…
|
||||||
|
hidden_comment_types.issue_ref_tooltip = Comments where the user changes the branch/tag associated with the issue
|
||||||
comment_type_group_reference = Reference
|
comment_type_group_reference = Reference
|
||||||
comment_type_group_label = Label
|
comment_type_group_label = Label
|
||||||
comment_type_group_milestone = Milestone
|
comment_type_group_milestone = Milestone
|
||||||
|
|
|
@ -74,10 +74,13 @@
|
||||||
{{.locale.Tr "settings.hidden_comment_types"}}
|
{{.locale.Tr "settings.hidden_comment_types"}}
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached segment">
|
<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">
|
<form class="ui form" action="{{.Link}}/hidden_comments" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<div class="inline field">
|
<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}}>
|
<input name="reference" type="checkbox" {{if(call .IsCommentTypeGroupChecked "reference")}}checked{{end}}>
|
||||||
<label>{{.locale.Tr "settings.comment_type_group_reference"}}</label>
|
<label>{{.locale.Tr "settings.comment_type_group_reference"}}</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -156,7 +159,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="inline field">
|
<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}}>
|
<input name="issue_ref" type="checkbox" {{if (call .IsCommentTypeGroupChecked "issue_ref")}}checked{{end}}>
|
||||||
<label>{{.locale.Tr "settings.comment_type_group_issue_ref"}}</label>
|
<label>{{.locale.Tr "settings.comment_type_group_issue_ref"}}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue