app/views/produces/_index_agent.html.erb
<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.produce')) -%></h1>
<div id="content_list">
<h2 class="resource_title">
<%= link_to agent.full_name, agent -%>
</h2>
<table class="index">
<tr>
<th><%= t('activerecord.attributes.manifestation.original_title') -%></th>
<th></th>
</tr>
<%- @produces.each do |produce| -%>
<tr class="line<%= cycle("0", "1") -%>">
<td>
<%= link_to produce.manifestation_original_title, produce.manifestation -%>
<%= form_icon(produce.manifestation.carrier_type) -%><br />
<%= agents_list(produce.manifestation.creates.readable_by(current_user)) -%>
<%= agents_list(produce.manifestation.realizes.readable_by(current_user)) -%>
<%= agents_list(produce.manifestation.produces.readable_by(current_user)) -%>
</td>
<td>
<%- if can? :destroy, produce -%>
<%= link_to t('page.destroy'), agent_produce_path(produce.agent, produce), :confirm => t('page.are_you_sure'), :method => :delete -%>
<%- end -%>
</td>
</tr>
<%- end -%>
</table>
<%= paginate(@produces) -%>
</div>
</div>
<div id="submenu" class="ui-corner-all">
<ul>
<li><%= link_to t('page.listing', :model => t('activerecord.models.manifestation')), publisher_manifestations_path(agent) -%></li>
<%- if can? :create, Produce -%>
<li><%= link_to t('page.new', :model => t('activerecord.models.produce')), new_agent_produce_path(agent) -%></li>
<%- end -%>
</ul>
</div>