<% per_page = Constants::COMMENTS_SEARCH_LIMIT %> <% if can_read_protocol_in_module?(@protocol) %>

<%=t('protocols.steps.comments') %> (<%= comments_count %>)

<% if comments.size == per_page %>
<%=t "general.more_comments" %>
<% end %>
<%= render partial: 'steps/comments/list.html.erb', locals: { comments: comments} %>
<% if can_create_comments_in_module?(@protocol.my_module) %> <%= bootstrap_form_for( :comment, url: step_step_comments_path(step, format: :json), html: { method: :post }, remote: true) do |f| %> <%= f.smart_text_area :message, single_line: true, hide_label: true, placeholder: t('general.comment_placeholder_new'), help: '.', data: { 'atwho-edit' => '' } %> <% end %> <% end %>
<% end %>