Add apply-to-mentions option to keyword mute UI. #454.
parent
cf28049f0a
commit
97d2df77aa
|
@ -52,7 +52,7 @@ class Settings::KeywordMutesController < Settings::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def keyword_mute_params
|
def keyword_mute_params
|
||||||
params.require(:keyword_mute).permit(:keyword, :whole_word)
|
params.require(:keyword_mute).permit(:keyword, :whole_word, :apply_to_mentions)
|
||||||
end
|
end
|
||||||
|
|
||||||
def paginated_keyword_mutes_for_account
|
def paginated_keyword_mutes_for_account
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
= f.input :keyword
|
= f.input :keyword
|
||||||
= f.check_box :whole_word
|
= f.check_box :whole_word
|
||||||
= f.label :whole_word, t('keyword_mutes.match_whole_word')
|
= f.label :whole_word, t('keyword_mutes.match_whole_word')
|
||||||
|
%br
|
||||||
|
= f.check_box :apply_to_mentions
|
||||||
|
= f.label :apply_to_mentions, t('keyword_mutes.apply_to_mentions')
|
||||||
|
|
||||||
.actions
|
.actions
|
||||||
- if f.object.persisted?
|
- if f.object.persisted?
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
%td
|
%td
|
||||||
- if keyword_mute.whole_word
|
- if keyword_mute.whole_word
|
||||||
%i.fa.fa-check
|
%i.fa.fa-check
|
||||||
|
%td
|
||||||
|
- if keyword_mute.apply_to_mentions
|
||||||
|
%i.fa.fa-check
|
||||||
%td
|
%td
|
||||||
= table_link_to 'edit', t('keyword_mutes.edit'), edit_settings_keyword_mute_path(keyword_mute)
|
= table_link_to 'edit', t('keyword_mutes.edit'), edit_settings_keyword_mute_path(keyword_mute)
|
||||||
%td
|
%td
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
%tr
|
%tr
|
||||||
%th= t('keyword_mutes.keyword')
|
%th= t('keyword_mutes.keyword')
|
||||||
%th= t('keyword_mutes.match_whole_word')
|
%th= t('keyword_mutes.match_whole_word')
|
||||||
|
%th= t('keyword_mutes.apply_to_mentions')
|
||||||
%th
|
%th
|
||||||
%th
|
%th
|
||||||
%tbody
|
%tbody
|
||||||
|
|
|
@ -526,6 +526,7 @@ en:
|
||||||
title: Invite people
|
title: Invite people
|
||||||
keyword_mutes:
|
keyword_mutes:
|
||||||
add_keyword: Add keyword
|
add_keyword: Add keyword
|
||||||
|
apply_to_mentions: Apply to mentions
|
||||||
edit: Edit
|
edit: Edit
|
||||||
edit_keyword: Edit keyword
|
edit_keyword: Edit keyword
|
||||||
keyword: Keyword
|
keyword: Keyword
|
||||||
|
|
Loading…
Reference in New Issue