">
<%= step.position + 1 %>
<% if can_manage_protocol_in_module?(@protocol) || can_manage_protocol_in_repository?(@protocol) %> " data-remote="true"> " data-remote="true"> " href="<%= edit_step_path(step, format: :json) %>" data-remote="true"> <%= link_to(step_path(step), title: t("protocols.steps.options.delete_title"), method: "delete", class: "btn btn-link", data: {action: "delete-step", confirm: t("protocols.steps.destroy.confirm", step: step.name)}) do %> <% end %> <% end %>
<%= step.name %> | <%= sanitize_input t('protocols.steps.published_on', timestamp: l(step.created_at, format: :full), user: h(step.user.full_name)) %>
<% if strip_tags(step.description).blank? %> <%= t('protocols.steps.no_description') %> <% else %>
<%= custom_auto_link(generate_image_tag_from_token(step.description, step), simple_format: false, tags: %w(img)) %>
<% end %>

<% unless step.tables.blank? then %>
<% step.tables.each do |table| %> <%= auto_link(simple_format(table.name), link: :urls, html: { target: '_blank' }) %>
<%= hidden_field(table, :contents, value: table.contents_utf_8, class: "hot-contents") %>
<% end %>
<% end %> <% assets = ordered_assets(step) %> <% unless assets.blank? then %>
<%= t("protocols.steps.files") %>
    <% assets.each do |asset| %>
  • <%= render partial: "shared/asset_link", locals: { asset: asset, display_image_tag: true }, formats: :html %>
  • <% end %>
<% end %> <% unless step.checklists.blank? then %>
<% step.checklists.asc.each do |checklist| %> <%= custom_auto_link(checklist.name) %> <% if checklist.checklist_items.empty? %>
<%= t("protocols.steps.empty_checklist") %>
<% else %> <% ordered_checklist_items(checklist).each do |checklist_item| %>
>
<% end %> <% end %> <% end %>
<% end %> <% if can_complete_or_checkbox_step?(@protocol) %> <% if step.completed? %>
<% else %>
<% end %> <% end %>
<% if can_read_protocol_in_module?(@protocol) %>
<% end %>