%= render :partial => 'objects/show',
:locals => { :object => document } %>
<% profile_subject ||= document.owner_subject %>
<% content_for :title do %>
<%= profile_subject.name + ": " + t('repository.title') %>
<% end %>
<% sidebar %>
<%if profile_subject_is_current?%>
<%= location(
link_to(t('repository.title'), polymorphic_path(controller.controller_name),:remote => true)
) %>
<%else%>
<%= location(
link_to(profile_subject.name, polymorphic_path(profile_subject),:remote => true),
link_to(t('repository.title'), polymorphic_path([profile_subject, controller.controller_name]),:remote => true)
) %>
<%end%>