scinote-web/app/views/reports/elements/_step_text_element.html.erb

19 lines
658 B
Text
Raw Normal View History

<div class="report-element report-step-attachment-element report-step-text-element">
<div class="report-element-body">
<% if step_text.text.present? %>
<%= custom_auto_link(step_text.prepare_for_report(:text),
team: current_team,
simple_format: false,
tags: %w(img),
base64_encoded_imgs: export_all) %>
<% else %>
<em><%= t('projects.reports.elements.step.no_description') %></em>
<% end %>
</div>
<% if defined?(children) %>
<div class="report-element-children">
<%= children %>
</div>
<% end %>
</div>