<%= result.name %> <%= t('my_modules.results.published_on_iso_html', timestamp: result.created_at.iso8601, user: h(result.user.full_name)) %>
<% result.result_orderable_elements.sort_by(&:position).each do |element| %> <% if element.orderable_type == 'ResultText' %> <%= render partial: "shareable_links/my_modules/step_elements/text", locals: { element: element.orderable } %> <% elsif element.orderable_type == 'ResultTable'%> <%= render partial: "shareable_links/my_modules/step_elements/table", locals: { element: element.orderable.table } %> <% end %> <% end %> <% if result.result_assets.present? %> <%= render partial: "shareable_links/my_modules/attachments", locals: { attachments: result.assets, step: result } %> <% end %>