<% title(@title) %> <% description("Browse the collectable rewards from the #{@title} and see which ones your character is missing.") %>

<%= @title %>

<% @tomestones.each do |tomestone| %> <%= link_to(tomestone_name(tomestone), tomestone_path(tomestone.downcase), class: "btn btn-dark bold mr-2 mb-1#{' active' if @tomestone == tomestone}") %> <% end %>
<%= render 'shared/filters' %> <%= javascript_tag "window._token = '#{form_authenticity_token}'" %>
<%= button_tag fa_icon('filter', text: t('filters')), data: { toggle: 'modal', target: '#filters'}, type: 'button', class: 'btn btn-secondary btn-sm modal-toggle ml-auto' %> <% if character_selected? %>
<%= render 'shared/progress', value: 0, min: 0, max: @collectables.size %> <%= render 'shared/progress', value: 0, min: 0, max: @collectables.map(&:cost).sum, alt: true %>
<% end %> <% if character_selected? %> <% end %> <% @collectables.collectable.each do |reward| %> <% if character_selected? %> <%= td_reward_owned(reward) %> <% end %> <% end %>
<%= t('name') %> <%= t('tomestones.original_source') %> <%= t('verminion.cost') %>
<%= reward_image(reward) %> <%= link_to(reward.collectable.name, polymorphic_path(reward.collectable), class: 'name') %> <%= sources(reward.collectable) %> <%= reward.cost %>
<% if @items.present? %>

<%= t('tomestones.other_items') %>

<% @items.each do |reward| %> <% end %>
<%= t('name') %> <%= t('verminion.cost') %>
<%= image_tag("items/#{reward.collectable.icon_id}.png") %> <%= reward.collectable.name %> <%= reward.cost %>
<% end %>