mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-21 00:56:14 +00:00
139f7646a7
Current name - page_heading_actions is long and hard to remember, this commit shortens it to just heading_actions, which is way more easier to remember and write, it's logical too.
26 lines
884 B
Plaintext
26 lines
884 B
Plaintext
- content_for :page_title do
|
|
= t('filters.index.title')
|
|
|
|
- content_for :heading_actions do
|
|
= link_to t('filters.new.title'), new_filter_path, class: 'button'
|
|
|
|
- if @filters.count == 0
|
|
%div{ style: 'display: flex; justify-content: center' }
|
|
%div.muted-hint= t 'filters.index.empty'
|
|
- else
|
|
.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
|