<% content_for :page_title do %> <%= Spree.t(:listing_affiliates) %> <% end %> <% content_for :page_actions do %>
  • <%= button_link_to Spree.t(:new_affiliate), new_admin_affiliate_url, :icon => 'plus', :id => 'admin_new_affiliate_link' %>
  • <% end %> <% if @affiliates.any? %> <% @affiliates.each do |affiliate|%> <% if affiliate.partial.blank? or !affiliate_partial_exists?(affiliate.partial) %> <% elsif affiliate_partial_exists?(affiliate.partial) %> <% end %> <% end %>
    <%= Spree.t('affiliate.name') %> <%= Spree.t('affiliate.path') %> <%= Spree.t('affiliate.count') %> <%= Spree.t('affiliate.status') %>
    <%=link_to affiliate.name, edit_admin_affiliate_url(affiliate) %> <%= affiliate_url(affiliate.path) %> <%= affiliate.referred_count %>Not foundFound <%= link_to_edit affiliate, :no_text => true %> <%= link_to_delete affiliate, :no_text => true %>
    <%= paginate @affiliates %> <% else %>
    <%= Spree.t(:no_resource_found, resource: "affiliates") %>, <%= link_to Spree.t(:add_one), spree.new_admin_affiliate_path %>!
    <% end %>