Sha256: a92c698be4b25a2b2edde057c61071c46b45737c4bc3968f11a79a8cb24caa6d

Contents?: true

Size: 410 Bytes

Versions: 14

Compression:

Stored size: 410 Bytes

Contents

<% if can? :create, document = Document.new(author: current_actor, owner: Actor.normalize(owner)) %>
  <%= link_to t('document.new.link'), new_document_path, class: "btn new_document-modal-link", 'data-toggle' => 'modal'  %>

  <%= render partial: 'common_documents/new.modal',
             locals: { document: document } %>

  <%= javascript_tag do %>
    SocialStream.Document.new_();
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
social_stream-2.0.3 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.0.3 app/views/common_documents/_new_button.html.erb
social_stream-2.0.2 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.0.2 app/views/common_documents/_new_button.html.erb
social_stream-2.0.1 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.0.1 app/views/common_documents/_new_button.html.erb
social_stream-2.0.0 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.0.0 app/views/common_documents/_new_button.html.erb
social_stream-2.0.0.beta3 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.0.0.beta3 app/views/common_documents/_new_button.html.erb
social_stream-2.0.0.beta2 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.0.0.beta2 app/views/common_documents/_new_button.html.erb
social_stream-2.0.0.beta1 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.0.0.beta1 app/views/common_documents/_new_button.html.erb