logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

index.html.haml (1732B)


  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. = form_tag admin_custom_emojis_url, method: 'GET', class: 'simple_form' do
  19. .fields-group
  20. - Admin::FilterHelper::CUSTOM_EMOJI_FILTERS.each do |key|
  21. - if params[key].present?
  22. = hidden_field_tag key, params[key]
  23. - %i(shortcode by_domain).each do |key|
  24. .input.string.optional
  25. = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.custom_emojis.#{key}")
  26. .actions
  27. %button= t('admin.accounts.search')
  28. = link_to t('admin.accounts.reset'), admin_custom_emojis_path, class: 'button negative'
  29. .table-wrapper
  30. %table.table
  31. %thead
  32. %tr
  33. %th= t('admin.custom_emojis.emoji')
  34. %th= t('admin.custom_emojis.shortcode')
  35. %th= t('admin.accounts.domain')
  36. %th
  37. %th
  38. %th
  39. %tbody
  40. = render @custom_emojis
  41. = paginate @custom_emojis
  42. = link_to t('admin.custom_emojis.upload'), new_admin_custom_emoji_path, class: 'button'