<%= step.position + 1 %> .
<%= render partial: "shareable_links/my_modules/inline_view", locals: { text: step.name, smart_annotation_enabled: false } %>
<%= t('protocols.steps.timestamp_iso_html', date: step.created_at.iso8601, user: step.user.full_name) %>
<% step.step_orderable_elements.sort_by(&:position).each do |element| %> <% if element.orderable_type == 'StepText' %> <%= render partial: "shareable_links/my_modules/step_elements/text", locals: { element: element.orderable } %> <% elsif element.orderable_type == 'Checklist' %> <%= render partial: "shareable_links/my_modules/step_elements/checklist", locals: { element: element.orderable } %> <% elsif element.orderable_type == 'StepTable'%> <%= render partial: "shareable_links/my_modules/step_elements/table", locals: { element: element.orderable.table } %> <% end %> <% end %> <% if step.step_assets.present? %> <%= render partial: "shareable_links/my_modules/attachments", locals: { attachments: step.assets, step: step } %> <% end %>