scinote-web/app/views/result_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

16 lines
No EOL
555 B
Text

<hr>
<div class="col-xs-12 comments-title">
<h4>
<%=t('my_modules.results.comments_tab') %>
(<span id="comment-counter-<%= result.id %>"><%= comments.count %></span>)
</h4>
</div>
<%= render partial: 'shared/comments/comments.html.erb', locals: {
object: result,
comments: comments,
can_create_comments: can_create_comments_in_module?(@my_module),
create_url: result_result_comments_path(result, format: :json),
more_url: result_result_comments_path(result, format: :json, from: comments.first&.id)
} %>