<% profile_subject ||= document.post_activity.receiver_subject %> <% content_for :title do %> <%= profile_subject.name + ": " + t('repository.title') %> <% end %> <% content_for :sidebar do %> <%= render :partial => 'home/sidebar' %> <% end %> <%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%> <% toolbar :profile => profile_subject %>

<%= document.title.nil? ? document.file_file_name : document.title %>

<%= show_view_for document %> <%= render :partial => "document_info", :locals => {:document => document} %>
<%= render :partial => 'activities/comments', :locals => { :activity => document.post_activity } %> <%= render :partial => 'comments/new', :locals => { :activity => document.post_activity } %>