<%= t('document.info.date.created_at') %>
<%= t('document.info.date.updated_at') %>
<%= I18n.localize document.created_at, :format => :long %>
<%= I18n.localize document.updated_at, :format => :long %>
<%= document.like_count %> likes

<%= link_to content_tag(:span,image_tag("btn/download.png") + t('document.actions.download'), :class => :action), download_document_path(document) %> <% if document.post_activity.edit_object_by?(current_subject) %> <%= link_to content_tag(:span,image_tag("btn/edit.png") + t('document.actions.edit'), :class => :action, :id => :document_edit_action), "javascript:toggleDocumentEdit();" %> <% end %> <% if document.post_activity.delete_object_by?(current_subject) %> <%= link_to content_tag(:span,image_tag("btn/error.png") + t('document.actions.delete'), :class => :action), document.post_activity.direct_object , :confirm => t('confirm_delete', :scope => document.post_activity.direct_object.class.to_s.underscore), :method => :delete %> <% end %>
<%= render :partial => "common/edit_form", :locals => {:document => document} %>