mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-21 00:56:14 +00:00
cdb101340a
* Add keyword filtering GET|POST /api/v1/filters GET|PUT|DELETE /api/v1/filters/:id - Irreversible filters can drop toots from home or notifications - Other filters can hide toots through the client app - Filters use a phrase valid in particular contexts, expiration * Make sure expired filters don't get applied client-side * Add missing API methods * Remove "regex filter" from column settings * Add tests * Add test for FeedManager * Add CustomFilter test * Add UI for managing filters * Add streaming API event to allow syncing filters * Fix tests
21 lines
683 B
Plaintext
21 lines
683 B
Plaintext
- content_for :page_title do
|
|
= t('filters.index.title')
|
|
|
|
.table-wrapper
|
|
%table.table
|
|
%thead
|
|
%tr
|
|
%th= t('simple_form.labels.defaults.phrase')
|
|
%th= t('simple_form.labels.defaults.context')
|
|
%th
|
|
%tbody
|
|
- @filters.each do |filter|
|
|
%tr
|
|
%td= filter.phrase
|
|
%td= filter.context.map { |context| I18n.t("filters.contexts.#{context}") }.join(', ')
|
|
%td
|
|
= table_link_to 'pencil', t('filters.edit.title'), edit_filter_path(filter)
|
|
= table_link_to 'times', t('filters.index.delete'), filter_path(filter), method: :delete
|
|
|
|
= link_to t('filters.new.title'), new_filter_path, class: 'button'
|