% title("#{t('minions.title')} - #{t('verminion.title')}") %>
<% description('Explore collectable minions by their Verminion stats.') %>
<%= link_to t('standard'), minions_path, class: 'btn btn-secondary' %>
<%= button_tag t('verminion.title'), class: 'btn btn-secondary active', disabled: true %>
<%= search_form_for(@q, url: verminion_minions_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 :race_id_eq, MinionRace.all.order("name_#{I18n.locale}"), :id, :name,
{ include_blank: t('all.types') }, class: 'form-control form-control-sm' %>
<%= f.select :speed_eq, speed_options, { include_blank: t('all.speeds') }, class: 'form-control form-control-sm' %>
<%= select_tag :strength, strength_options(params[:strength]), include_blank: t('all.strengths'),
class: 'form-control form-control-sm multiselect' %>
<%= f.collection_select :skill_type_id_eq, MinionSkillType.all.order("name_#{I18n.locale}"), :id, :name,
{ include_blank: t('all.skill_types') }, 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: @minions.map(&:id) %>
| # |
<%= t('name') %> |
Type |
HP |
ATK |
DEF |
Speed |
Cost |
Auto-attack |
Strengths |
Special Type |
Points |
<% if character_selected? %>
|
<% end %>
<% @minions.each do |minion| %>
|
<%= link_to(minion_path(minion)) do %>
<%= sprite(minion, 'minions-small') %>
<% end %>
|
<%= link_to(minion.name, minion_path(minion), class: 'name') %> |
<%= minion_type(minion) %>
|
<%= minion.hp %> |
<%= minion.attack %> |
<%= minion.defense %> |
<%= speed(minion) %> |
<%= minion.cost %> |
<%= auto_attack(minion) %> |
<%= strengths(minion) %> |
<%= minion.skill_type&.name %>
|
<%= minion.skill_cost %> |
<% if character_selected? %>
<% if @comparison.present? %>
<%= td_comparison(minion) %>
<% else %>
<%= td_owned(minion) %>
<% end %>
<% end %>
<% end %>