Sha256: 01e4c9270344ebeb51a22f8bd00c6f77a352bfccf2febe82a395056bb1db7e4d

Contents?: true

Size: 433 Bytes

Versions: 10

Compression:

Stored size: 433 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', 'data-dynamic' => true %>

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

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
social_stream-2.2.2 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.2.1 app/views/common_documents/_new_button.html.erb
social_stream-2.2.1 documents/app/views/common_documents/_new_button.html.erb
social_stream-2.2.0 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.2.0 app/views/common_documents/_new_button.html.erb
social_stream-2.1.1 documents/app/views/common_documents/_new_button.html.erb
social_stream-2.1.0 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.1.0 app/views/common_documents/_new_button.html.erb
social_stream-2.0.4 documents/app/views/common_documents/_new_button.html.erb
social_stream-documents-2.0.4 app/views/common_documents/_new_button.html.erb