<%= link_to model_to_relate.model_name.human.pluralize, { :controller => "admin/#{model_to_relate_as_resource}", foreign_key => @item.id }, :title => _t("%{model} filtered by %{filtered_by}", :model => model_to_relate.model_name.human.pluralize, :filtered_by => @item.to_label) %> <%= add_new %>

<%= form %> <% if @items.any? -%> <%= table %> <%= will_paginate(@items, :renderer => Typus::Pagination, :anchor => model_to_relate.to_resource) %> <% else %>

<%= _t("There are no %{records}.", :records => model_to_relate.model_name.human.pluralize.downcase) %>

<% end %>