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.

34 lines
1.1 KiB

  1. - content_for :page_title do
  2. = t('admin.custom_emojis.title')
  3. .filters
  4. .filter-subset
  5. %strong= t('admin.accounts.location.title')
  6. %ul
  7. %li= filter_link_to t('admin.accounts.location.all'), local: nil, remote: nil
  8. %li
  9. - if selected? local: '1', remote: nil
  10. = filter_link_to t('admin.accounts.location.local'), {local: nil, remote: nil}, {local: '1', remote: nil}
  11. - else
  12. = filter_link_to t('admin.accounts.location.local'), local: '1', remote: nil
  13. %li
  14. - if selected? remote: '1', local: nil
  15. = filter_link_to t('admin.accounts.location.remote'), {remote: nil, local: nil}, {remote: '1', local: nil}
  16. - else
  17. = filter_link_to t('admin.accounts.location.remote'), remote: '1', local: nil
  18. .table-wrapper
  19. %table.table
  20. %thead
  21. %tr
  22. %th= t('admin.custom_emojis.emoji')
  23. %th= t('admin.custom_emojis.shortcode')
  24. %th= t('admin.accounts.domain')
  25. %th
  26. %th
  27. %th
  28. %tbody
  29. = render @custom_emojis
  30. = paginate @custom_emojis
  31. = link_to t('admin.custom_emojis.upload'), new_admin_custom_emoji_path, class: 'button'