mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Revert "SCI-3702 replace _to_text with _to_html"
This reverts commit 93b7c472ac
.
This commit is contained in:
parent
93b7c472ac
commit
1c84e46a21
|
@ -19,11 +19,13 @@ module DrawStepChecklist
|
|||
text I18n.t('projects.reports.elements.step_checklist.user_time',
|
||||
timestamp: I18n.l(timestamp, format: :full)), color: color[:gray]
|
||||
end
|
||||
items.each do |item|
|
||||
html = custom_auto_link(item.text, team: @report_team)
|
||||
html_to_word_converter(html)
|
||||
@docx.p " (#{I18n.t('projects.reports.elements.step_checklist.checked')})", color: '2dbe61' if item.checked
|
||||
@docx.ul do
|
||||
items.each do |item|
|
||||
li do
|
||||
text SmartAnnotations::TagToText.new(@user, @report_team, item.text).text
|
||||
text " (#{I18n.t('projects.reports.elements.step_checklist.checked')})", color: '2dbe61' if item.checked
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue