mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
c248e87adb
* Add permission tests for results controller [SCI-6071] * Update results controllers with new permissions [SCI-6071] * Small fixes to results controllers [SCI-6071] * Update result permission helpers [SCI-6071]
16 lines
561 B
Text
16 lines
561 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_my_module_result_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)
|
|
} %>
|