The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

21 lines
683 B

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