where i deviate from standard mastodon assets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html.haml 832B

123456789101112131415161718192021222324
  1. - content_for :page_title do
  2. = t('filters.index.title')
  3. - content_for :heading_actions do
  4. = link_to t('filters.new.title'), new_filter_path, class: 'button'
  5. - if @filters.empty?
  6. %div.muted-hint.center-text= t 'filters.index.empty'
  7. - else
  8. .table-wrapper
  9. %table.table
  10. %thead
  11. %tr
  12. %th= t('simple_form.labels.defaults.phrase')
  13. %th= t('simple_form.labels.defaults.context')
  14. %th
  15. %tbody
  16. - @filters.each do |filter|
  17. %tr
  18. %td= filter.phrase
  19. %td= filter.context.map { |context| I18n.t("filters.contexts.#{context}") }.join(', ')
  20. %td
  21. = table_link_to 'pencil', t('filters.edit.title'), edit_filter_path(filter)
  22. = table_link_to 'times', t('filters.index.delete'), filter_path(filter), method: :delete