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

11 lines
419 B
Text
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', locals: {
object: @project,
comments: comments,
can_create_comments: can_create_project_comments?(@project),
create_url: project_project_comments_path(@project, format: :json),
more_url: project_project_comments_path(@project, format: :json, from: comments.first&.id)
} %>