Sha256: ca34cbe579d4f89295fa36b78544c1d97988b2e78537c46a3fe2ddd318f5fda3

Contents?: true

Size: 1.55 KB

Versions: 2

Compression:

Stored size: 1.55 KB

Contents

<div id="document_info">
  <div class="left">
    <div id="date_labels">
      <div class="details">
        <%= t('document.info.date.created_at') %>
      </div>
      <div class="details">
        <%= t('document.info.date.updated_at') %>
      </div>
    </div>
    <div id="dates">
      <div class="date">
        <%= I18n.localize document.created_at, :format => :long %>
      </div>
      <div class="date">
        <%= I18n.localize document.updated_at, :format => :long %>
      </div>
    </div>
  </div>
  <div class="right">
    <div id="like_count">
      <%= document.like_count %> <span class="details">likes</span>
    </div>
  </div>
  <br class="clearfloat" />
  <div id="actions">
    <%= 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 %>
  </div>
</div>
<%= render :partial => "common/edit_form", :locals => {:document => document} %>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
social_stream-0.12.4 documents/app/views/common/_document_info.html.erb
social_stream-documents-0.4.3 app/views/common/_document_info.html.erb