mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 03:35:25 +08:00
d207cf5dce
* Preparing helpers for comments * Refactored comments over scinote * Update events
17 lines
596 B
Text
17 lines
596 B
Text
<% if can_read_protocol_in_module?(@protocol) %>
|
|
|
|
<div class="col-xs-12 comments-title">
|
|
<h4>
|
|
<%=t('protocols.steps.comments') %>
|
|
(<span id="comment-counter-<%= step.id %>"><%= comments_count %></span>)
|
|
</h4>
|
|
</div>
|
|
|
|
<%= render partial: 'shared/comments/comments.html.erb', locals: {
|
|
object: step,
|
|
comments: comments,
|
|
can_create_comments: can_create_comments_in_module?(@protocol.my_module),
|
|
create_url: step_step_comments_path(step, format: :json),
|
|
more_url: step_step_comments_path(step, format: :json, from: comments.first&.id)
|
|
} %>
|
|
<% end %>
|