<% 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 %>
<% end %>
<% if can_complete_or_checkbox_step?(@protocol) %>
<% if step.completed? %>
<% else %>
<% end %>
<% end %>
<% if can_read_protocol_in_module?(@protocol) %>
<% end %>