<% 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 %>
<%= render partial: "shareable_links/my_modules/results/comments", locals: { comments: result.comments } %>