% title(t('emotes.title')) %>
<% description("Track your character's emotes and discover how to obtain new ones.") %>
<%= render 'shared/category_buttons', categories: @categories, selected: @category %>
<%= search_form_for(@q, url: emotes_path, enforce_utf8: false, class: 'form form-inline search-form d-flex') do |f| %>
<%= f.search_field "name_#{I18n.locale}_cont", placeholder: t('name'), size: 40,
class: 'form-control form-control-sm flex-grow-1' %>
<%= f.collection_select :sources_type_id_eq, @types, :id, :name,
{ include_blank: t('all.sources') }, class: 'form-control form-control-sm' %>
<%= button_tag fa_icon('filter', text: t('filters')), data: { toggle: 'modal', target: '#filters'},
type: 'button', class: 'btn btn-secondary btn-sm modal-toggle' %>
<%= f.submit t('search'), name: nil, class: 'btn btn-primary btn-sm mr-0' %>
<% end %>
<%= render 'shared/filters' %>
<%= render 'shared/collection_progress', ids: @emotes.map(&:id) %>
<%= javascript_tag "window._token = '#{form_authenticity_token}'" %>
| # |
<%= t('name') %> |
<%= t('source') %> |
<%= t('category') %> |
<%= fa_icon('dollar-sign') %> |
<%= t('own') %> |
<%= t('patch') %> |
<% if character_selected? %>
|
<% end %>
<% if @comparison.present? %>
|
<% end %>
<% @emotes.each do |emote| %>
| <%= sprite(emote, :emote) %> |
<%= link_to(emote.name, emote_path(emote), class: 'name') %> |
<%= sources(emote) %> |
<%= emote.category.name %> |
<%= market_link(emote) %> |
<%= rarity(emote) %> |
<%= emote.patch %> |
<% if character_selected? %>
<%= td_owned(emote, manual: true) %>
<% end %>
<% if @comparison.present? %>
<%= td_comparison(emote) %>
<% end %>
<% end %>