% title(t('orchestrions.title')) %>
<% description("Track your character's orchestrion rolls and discover how to obtain new ones.") %>
<%= render 'shared/filters' %>
<%= render 'shared/category_buttons', categories: @categories, selected: @category %>
<% if @character&.verified_user?(current_user) %>
<%= link_to t('orchestrions.quick_select'), select_orchestrions_path, class: 'btn btn-secondary btn-sm' %>
<% end %>
<%= search_form_for(@q, url: orchestrions_path, enforce_utf8: false,
class: 'form form-inline search-form d-flex mx-auto') do |f| %>
<%= f.search_field "name_#{I18n.locale}_cont", placeholder: t('name'),
class: 'form-control form-control-sm flex-grow-1' %>
<%= f.search_field "description_#{I18n.locale}_or_details_cont", placeholder: t('source'),
class: 'form-control form-control-sm flex-grow-1' %>
<%= 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/collection_progress', ids: @orchestrions.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 %>
<% @orchestrions.each do |orchestrion| %>
| <%= image_tag('orchestrion.png') %> |
<%= orchestrion_number(orchestrion) %>
|
<%= link_to(orchestrion.name, orchestrion_path(orchestrion), class: 'name') %> |
<%= sources(orchestrion) %> |
<%= orchestrion.category.name %> |
<%= market_link(orchestrion) %>
|
<%= rarity(orchestrion) %>
|
<%= orchestrion.patch %> |
<% if character_selected? %>
<%= td_owned(orchestrion, manual: true) %>
<% end %>
<% if @comparison.present? %>
<%= td_comparison(orchestrion) %>
<% end %>
<% end %>