scinote-web/app/views/result_comments/_index.html.erb
2021-09-14 11:08:35 +02:00

17 lines
554 B
Plaintext

<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_my_module_comments?(@my_module),
create_url: result_result_comments_path(result, format: :json),
more_url: result_result_comments_path(result, format: :json, from: comments.first&.id)
} %>