scinote-web/app/views/project_comments/_index.html.erb

11 lines
433 B
Plaintext
Raw Normal View History

2016-02-12 23:52:43 +08:00
<h5 class="text-center"><%= t('projects.index.comment_tab') %></h5>
<hr>
<%= render partial: 'shared/comments/comments.html.erb', locals: {
object: @project,
comments: comments,
can_create_comments: can_create_comments_in_project?(@project),
create_url: project_project_comments_path(@project, format: :json),
more_url: project_project_comments_path(@project, format: :json, from: comments.first&.id)
} %>