mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
14 lines
470 B
Ruby
14 lines
470 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Reports::Docx::DrawStepText
|
||
|
def draw_step_text(step_text)
|
||
|
if step_text.text.present?
|
||
|
html = custom_auto_link(step_text.text, team: @report_team)
|
||
|
Reports::HtmlToWordConverter.new(@docx, { scinote_url: @scinote_url,
|
||
|
link_style: @link_style }).html_to_word_converter(html)
|
||
|
else
|
||
|
@docx.p I18n.t 'projects.reports.elements.step.no_description'
|
||
|
end
|
||
|
end
|
||
|
end
|