<%= link_to model_to_relate.model_name.human.pluralize,
{ :controller => "admin/#{model_to_relate_as_resource}", foreign_key => @item.id },
:title => _("%{model} filtered by %{filtered_by}",
:model => model_to_relate.model_name.human.pluralize,
:filtered_by => @item.to_label) %>
<%= add_new %>
<%= form %>
<% unless @items.count.zero? -%>
<%= table %>
<%= pagination(:anchor => model_to_relate.to_resource) %>
<% else %>
<%= _("There are no %{records}.", :records => model_to_relate.model_name.human.pluralize.downcase) %>
<% end %>