2016-09-20 23:06:07 +08:00
|
|
|
<hr>
|
2019-06-04 20:40:21 +08:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: 'shared/comments/comments', locals: {
|
2019-06-04 20:40:21 +08:00
|
|
|
object: result,
|
2021-09-14 17:08:35 +08:00
|
|
|
comments: comments,
|
2021-09-24 19:11:41 +08:00
|
|
|
can_create_comments: can_create_my_module_result_comments?(@my_module),
|
2019-06-04 20:40:21 +08:00
|
|
|
create_url: result_result_comments_path(result, format: :json),
|
|
|
|
more_url: result_result_comments_path(result, format: :json, from: comments.first&.id)
|
2021-09-14 17:08:35 +08:00
|
|
|
} %>
|