<% title(t('mounts.title')) %> <% description("Automatically track your character's mounts and discover how to obtain new ones.") %>
<%= search_form_for(@q, url: mounts_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: @mounts.map(&:id) %> <% if character_selected? %> <% end %> <% @mounts.each do |mount| %> <% if character_selected? %> <% if @comparison.present? %> <%= td_comparison(mount) %> <% else %> <%= td_owned(mount) %> <% end %> <% end %> <% end %>
# <%= t('name') %> <%= t('source') %> <%= fa_icon('dollar-sign') %> <%= fa_icon('music') %> <%= t('own') %> <%= t('patch') %>
<%= link_to(mount_path(mount)) do %> <%= sprite(mount, 'mounts-small') %> <% end %> <%= link_to(mount.name, mount_path(mount), class: 'name') %> <%= sources(mount) %> <%= market_link(mount) %> <%= custom_music_link(mount) %> <%= rarity(mount) %> <%= mount.patch %>