scinote-web/app/views/project_comments/_index.html.erb
aignatov-bio d207cf5dce
Refactored comments over SciNote [SCI-3505] (#1808)
* Preparing helpers for comments

* Refactored comments over scinote

* Update events
2019-06-04 14:40:21 +02:00

10 lines
433 B
Text

<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)
} %>