app/views/agents/show.html.erb
<div id="content_detail" class="ui-corner-all">
<%# cache(:controller => :agents, :action => :show, :id => @agent.id, :page => 'detail', :role => current_user_role_name, :locale => @locale, :agent_id => nil) do %>
<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.agent')) -%></h1>
<div id="content_list">
<p id="notice"><%= notice %></p>
<h2 class="resource_title">
[P]
<%= @agent.full_name -%>
</h2>
<%- if @version -%>
<p>(<%= l(@agent.versions.find(@version).created_at) -%>)</p>
<%- end -%>
<p>
(<%= link_to_wikipedia(@agent.full_name_without_space) -%>)
</p>
<%= render 'agents/show_list' %>
</div>
</div>
<div id="submenu" class="ui-corner-all">
<div id="manifestation_book_jacket">
<%= agent_custom_book_jacket(@agent) -%>
</div>
<ul>
<%- if @agent.picture_files.exists? -%>
<li><%= t('page.total') %>: <%= @agent.picture_files.count %> <%= t('page.number_of_pictures', :count => @agent.picture_files.count) %></li>
<li><%= link_to t('page.listing', :model => t('activerecord.models.picture_file')), agent_picture_files_path(@agent) -%></li>
<script type="text/javascript">
$(document).ready(function(){
$("a[rel='agent_<%= @agent.id -%>']").colorbox({transition:"none"});
$("a[rel='agent_<%= @agent.id -%>_other']").colorbox({transition:"none"});
})
</script>
<% end %>
<%- if can? :create, PictureFile -%>
<li><%= link_to t('page.new', :model => t('activerecord.models.picture_file')), new_agent_picture_file_path(@agent) -%></li>
<%- end -%>
</ul>
<ul>
<li><%= link_to t('page.back'), agents_path -%></li>
<%- if can? :create, User -%>
<li><%= link_to t('page.edit'), edit_agent_path(@agent) -%></li>
<li><%= link_to t('agent.add_derivation'), agent_agents_path(@agent, :mode => 'add') -%></li>
<%- end -%>
<%- if @agent.user.blank? -%>
<%- if can? :destroy, @agent -%>
<li><%= link_to t('page.new', :model => t('activerecord.models.agent')), new_agent_path -%></li>
<li><%= link_to t('page.destroy'), @agent, :confirm => t('page.are_you_sure'), :method => :delete -%></li>
<%- end -%>
<%- end -%>
</ul>
<ul>
<li><%= link_to t('page.listing', :model => t('activerecord.models.work')), creator_manifestations_path(@agent) -%></li>
<li><%= link_to t('page.listing', :model => t('activerecord.models.expression')), contributor_manifestations_path(@agent) -%></li>
<li><%= link_to t('page.listing', :model => t('activerecord.models.manifestation')), publisher_manifestations_path(@agent) -%></li>
</ul>
</div>