socialforge/app/views/org_document_comments/index.html.erb

15 lines
731 B
Plaintext
Raw Normal View History

2016-05-04 09:01:51 +08:00
<%= content_for(:header_tags) do %>
<%= import_ke(enable_at: false, prettify: false, init_activity: true) %>
<% end %>
<%= render :partial => 'new' %>
<% unless @documents.nil? %>
<% @documents.each do |document| %>
<script>
$(function() {
2016-05-05 20:19:39 +08:00
sd_create_editor_from_data(<%= OrgActivity.where("org_act_type='OrgDocumentComment'and org_act_id=?", document.id).first.id %>, null, "100%", "OrgActivity");
2016-05-04 09:01:51 +08:00
});
</script>
<%= render :partial => 'organizations/show_org_document', :locals => {:document => document, :act => OrgActivity.where("org_act_type='OrgDocumentComment'and org_act_id=?", document.id).first, :flag => 0} %>
<% end %>
2015-11-12 09:32:00 +08:00
<% end %>