mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 20:05:55 +08:00
Revert "SCI-3702 replace _to_text with _to_html"
This reverts commit 93b7c472ac
.
This commit is contained in:
parent
93b7c472ac
commit
1c84e46a21
1 changed files with 7 additions and 5 deletions
|
@ -19,11 +19,13 @@ module DrawStepChecklist
|
||||||
text I18n.t('projects.reports.elements.step_checklist.user_time',
|
text I18n.t('projects.reports.elements.step_checklist.user_time',
|
||||||
timestamp: I18n.l(timestamp, format: :full)), color: color[:gray]
|
timestamp: I18n.l(timestamp, format: :full)), color: color[:gray]
|
||||||
end
|
end
|
||||||
items.each do |item|
|
@docx.ul do
|
||||||
html = custom_auto_link(item.text, team: @report_team)
|
items.each do |item|
|
||||||
html_to_word_converter(html)
|
li do
|
||||||
@docx.p " (#{I18n.t('projects.reports.elements.step_checklist.checked')})", color: '2dbe61' if item.checked
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue